public final class IdGeneratorFactory extends Object
By default 2 idgenerators are supported:
IdGenerator
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT
Name of the default IdGenerator provided by the connector.
|
static String |
NANO |
static String |
PROPS_IDGENERATOR_PREFIX
Property prefix for the property
|
static String |
PROPS_IDGENERATOR_SUFFIX
Property suffix for the property
|
static String |
TIMEBASED
name of the IdGenerator that generated key based on
System.currentTimeMillis() and System.nanoTime() |
static String |
UUID
Name of the
UUID based IdGenerator. |
static String |
XSID
name of the xs:id based IdGenerator.
|
Modifier and Type | Method and Description |
---|---|
static IdGenerator |
getIdGenerator()
returns the default instance of the idGenerator, which uses a datetime generator, suited to create an inputReference for a mycarenet
message ( max length 14).
|
static IdGenerator |
getIdGenerator(String type) |
static void |
invalidateCachedInstance()
Sets the cachedInstance to null
|
static void |
registerDefaultImplementation(String type,
Class<? extends IdGenerator> clazz) |
public static final String PROPS_IDGENERATOR_PREFIX
public static final String PROPS_IDGENERATOR_SUFFIX
public static final String DEFAULT
public static final String UUID
UUID
based IdGenerator.public static final String XSID
public static final String TIMEBASED
System.currentTimeMillis()
and System.nanoTime()
public static final String NANO
public static IdGenerator getIdGenerator() throws TechnicalConnectorException
TechnicalConnectorException
public static IdGenerator getIdGenerator(String type) throws TechnicalConnectorException
TechnicalConnectorException
public static void invalidateCachedInstance()
public static void registerDefaultImplementation(String type, Class<? extends IdGenerator> clazz)
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.