|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.idgenerator.IdGeneratorFactory
public final class IdGeneratorFactory
creates and returns an IdGenerator. The IdGenerators used by the connector can be define in the configuration by using the following structure be.ehealth.technicalconnector.idgenerator.{type}.classname.
By default 2 idgenerators are supported:
IdGenerator
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |