@ApplicationScoped public class DefaultIdentifierService extends java.lang.Object implements IdentifierService
| Constructor and Description |
|---|
DefaultIdentifierService()
Create a UUID-based IdentifierService.
|
DefaultIdentifierService(java.lang.String prefix)
Create a UUID-based IdentifierService with a default prefix value.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<java.lang.String> |
getSupplier()
Get a Supplier that generates Strings with the provided prefix.
|
java.util.function.Supplier<java.lang.String> |
getSupplier(java.lang.String prefix)
Get a Supplier that generates Strings with the provided prefix.
|
java.util.function.Supplier<java.lang.String> |
getSupplier(java.lang.String prefix,
int hierarchy,
int length)
Get a Supplier that generates Strings with the provided prefix.
|
public DefaultIdentifierService()
public DefaultIdentifierService(java.lang.String prefix)
prefix - the prefixpublic java.util.function.Supplier<java.lang.String> getSupplier(java.lang.String prefix,
int hierarchy,
int length)
IdentifierServicegetSupplier in interface IdentifierServiceprefix - the prefixhierarchy - the levels of hierarchy to addlength - the length of each level of hierarchypublic java.util.function.Supplier<java.lang.String> getSupplier(java.lang.String prefix)
IdentifierServicegetSupplier in interface IdentifierServiceprefix - the prefixpublic java.util.function.Supplier<java.lang.String> getSupplier()
IdentifierServicegetSupplier in interface IdentifierService