org.carrot2.util.factory
Class SingletonFactory<T>
java.lang.Object
org.carrot2.util.factory.SingletonFactory<T>
- All Implemented Interfaces:
- IFactory<T>
public final class SingletonFactory<T>
- extends Object
- implements IFactory<T>
A IFactory that creates new instances of a given class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonFactory
public SingletonFactory(E singleton)
createInstance
public T createInstance()
- Specified by:
createInstance in interface IFactory<T>
Copyright (c) Dawid Weiss, Stanislaw Osinski