public interface CaseIdGenerator
0000000001
, 0000000010
, 0000000100
instead of 1
, 10
, 100
Modifier and Type | Method and Description |
---|---|
String |
generate(String prefix,
Map<String,Object> optionalParameters)
Generates next value for given prefix.
|
String |
getIdentifier()
Identifier of the generator so it can be found and registered at runtime
|
void |
register(String prefix)
Should be called only one time per given prefix.
|
void |
unregister(String prefix)
Unregisters given prefix from the generator.
|
String getIdentifier()
void register(String prefix)
prefix
- unique prefix that should be used for generating case identifiersvoid unregister(String prefix)
prefix
- unique prefix that should be used for generating case identifiersString generate(String prefix, Map<String,Object> optionalParameters) throws CasePrefixNotFoundException
prefix
- unique prefix that should be used for generating case identifiersoptionalParameters
- map of optionalParameters that might be helpful for implementationCasePrefixNotFoundException
- in case given prefix was not registeredCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.