public final class KeyGeneratorRegistry
extends java.lang.Object
Constructor | Description |
---|---|
KeyGeneratorRegistry(DDLGenConfiguration config) |
Construct an instance of each key generator factory specified in given
configuration.
|
Modifier and Type | Method | Description |
---|---|---|
KeyGenerator |
createKeyGenerator(KeyGeneratorDef definition) |
Create an instance of the key generator specifed by given definiton.
|
KeyGenerator |
getKeyGenerator(java.lang.String alias) |
Returns key generator with given alias.
|
java.util.Collection<java.lang.String> |
getKeyGeneratorAliases() |
Returns a collection of the aliasses of current registered key generators.
|
java.util.Collection<KeyGeneratorFactory> |
getKeyGeneratorFactories() |
Returns a collection of the current configured key generator factories.
|
KeyGeneratorFactory |
getKeyGeneratorFactory(java.lang.String algorithm) |
Returns key generator factory with given algorithm.
|
java.util.Collection<java.lang.String> |
getKeyGeneratorFactoryAlgorithms() |
Returns a collection of the algorithms of current configured key generator
factories.
|
java.util.Collection<KeyGenerator> |
getKeyGenerators() |
Returns a collection of the current registered key generators.
|
public KeyGeneratorRegistry(DDLGenConfiguration config)
config
- The configuration to obtain the key generator factory classes from.
Also used for all key generator instances to obtain configuration
properties from.public KeyGenerator createKeyGenerator(KeyGeneratorDef definition) throws GeneratorException
definition
- The definition to initialize the key generator.GeneratorException
- If failed to create a key generator instance.public KeyGeneratorFactory getKeyGeneratorFactory(java.lang.String algorithm) throws GeneratorException
algorithm
- Algorithm of the key generator factory.GeneratorException
- If no key generator factory with given algorithm can
be found.public java.util.Collection<KeyGeneratorFactory> getKeyGeneratorFactories()
public java.util.Collection<java.lang.String> getKeyGeneratorFactoryAlgorithms()
public KeyGenerator getKeyGenerator(java.lang.String alias) throws GeneratorException
alias
- Alias of the key generator.GeneratorException
- If no generator for alias can be found.public java.util.Collection<KeyGenerator> getKeyGenerators()
public java.util.Collection<java.lang.String> getKeyGeneratorAliases()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com