Class KeyGeneratorFactoryRegistry
- java.lang.Object
-
- org.castor.cpa.persistence.sql.keygen.KeyGeneratorFactoryRegistry
-
public final class KeyGeneratorFactoryRegistry extends java.lang.Object
Registry forKeyGeneratorFactory
implementations obtained from the Castor properties file and used by the JDO mapping configuration file.- Version:
- $Revision: 8093 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Oleg Nitz, Ralf Joachim
-
-
Constructor Summary
Constructors Constructor Description KeyGeneratorFactoryRegistry(AbstractProperties properties)
Create a new registry instance of key generator factories.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyGeneratorFactory
getKeyGeneratorFactory(java.lang.String name)
Returns a key generator factory with the specified name.java.lang.String[]
getKeyGeneratorFactoryNames()
Returns an array of names of all the configured key generator factories.
-
-
-
Constructor Detail
-
KeyGeneratorFactoryRegistry
public KeyGeneratorFactoryRegistry(AbstractProperties properties)
Create a new registry instance of key generator factories. The registry will be initialized with all key generator factories specified through KEYGENERATOR_FACTORIES property of given properties.- Parameters:
properties
- The properties to use.
-
-
Method Detail
-
getKeyGeneratorFactory
public KeyGeneratorFactory getKeyGeneratorFactory(java.lang.String name)
Returns a key generator factory with the specified name. Returns null if the named factory is not supported.- Parameters:
name
- Name of the key generator factory.- Returns:
- The
KeyGeneratorFactory
ornull
if no key generator factory with this name exists.
-
getKeyGeneratorFactoryNames
public java.lang.String[] getKeyGeneratorFactoryNames()
Returns an array of names of all the configured key generator factories. The names can be used to obtain a key generator factory fromgetKeyGeneratorFactory(java.lang.String)
.- Returns:
- Array of names of key generator factories.
-
-