org.tm4j.topicmap.utils
Class IDGeneratorFactory
java.lang.Object
org.tm4j.topicmap.utils.IDGeneratorFactory
- public class IDGeneratorFactory
- extends java.lang.Object
A Factory for creating IDGenerator implementations. The implementation returned depends upon the value of the system property org.tm4j.topicmap.idGenerator
. If this property is
defined, then the value of the property is treated as a class name and an attempt is made to create an new instance of the class.
If that object creation fails or if the specified class does
not implement the IDGenerator interface or if no value is specified for the property, then a new instance of the default implementation (org.tm4j.topicmap.utils.IDGeneratorImpl) will be created.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDGeneratorFactory
public IDGeneratorFactory()
newIDGenerator
public static IDGenerator newIDGenerator()
- Creates a new IDGenerator implementation.
- Returns:
- The newly created IDGenerator object.