Package com.db4o.config
Class SimpleNameProvider
- java.lang.Object
-
- com.db4o.config.SimpleNameProvider
-
- All Implemented Interfaces:
NameProvider
public class SimpleNameProvider extends java.lang.Object implements NameProvider
Assigns a fixed, pre-defined name to the givenObjectContainer
.
-
-
Constructor Summary
Constructors Constructor Description SimpleNameProvider(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
name(ObjectContainer db)
Derives a name for the givenObjectContainer
.
-
-
-
Method Detail
-
name
public java.lang.String name(ObjectContainer db)
Description copied from interface:NameProvider
Derives a name for the givenObjectContainer
. This method will be called when database startup has completed, i.e. the method will see a completely initializedObjectContainer
. Any code invoked during the startup process (for exampleConfigurationItem
instances) will still see the default naming.- Specified by:
name
in interfaceNameProvider
-
-