db4o 8.0

com.db4o.config
Class SimpleNameProvider

java.lang.Object
  extended by 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 given ObjectContainer.


Constructor Summary
SimpleNameProvider(java.lang.String name)
           
 
Method Summary
 java.lang.String name(ObjectContainer db)
          Derives a name for the given ObjectContainer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNameProvider

public SimpleNameProvider(java.lang.String name)
Method Detail

name

public java.lang.String name(ObjectContainer db)
Description copied from interface: NameProvider
Derives a name for the given ObjectContainer. This method will be called when database startup has completed, i.e. the method will see a completely initialized ObjectContainer. Any code invoked during the startup process (for example ConfigurationItem instances) will still see the default naming.

Specified by:
name in interface NameProvider

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.