org.tm4j.topicmap.utils
Class ImprovedIDGeneratorImpl

java.lang.Object
  extended byorg.tm4j.topicmap.utils.ImprovedIDGeneratorImpl
All Implemented Interfaces:
IDGenerator

public class ImprovedIDGeneratorImpl
extends java.lang.Object
implements IDGenerator

The default IDGenerator implementation. Will generate a String based Unique ID


Constructor Summary
ImprovedIDGeneratorImpl()
          Constructs a new IDGeneratorImpl object, with the base part of the ID string set to the time of creation.
 
Method Summary
 java.lang.String getID()
          Static function for generating a securely random ID that can be used for identifying items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImprovedIDGeneratorImpl

public ImprovedIDGeneratorImpl()
Constructs a new IDGeneratorImpl object, with the base part of the ID string set to the time of creation.

Method Detail

getID

public java.lang.String getID()
Static function for generating a securely random ID that can be used for identifying items. The generated ID includes the IP address of the machine it is running on, some time information, and a securely random integer.

Specified by:
getID in interface IDGenerator