org.carrot2.util.factory
Class NewClassInstanceFactory<T>

java.lang.Object
  extended by org.carrot2.util.factory.NewClassInstanceFactory<T>
All Implemented Interfaces:
IFactory<T>

public final class NewClassInstanceFactory<T>
extends Object
implements IFactory<T>

A IFactory that creates new instances of a given class.


Constructor Summary
NewClassInstanceFactory(Class<? extends T> clazz)
           
 
Method Summary
 T createInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewClassInstanceFactory

public NewClassInstanceFactory(Class<? extends T> clazz)
Method Detail

createInstance

public T createInstance()
Specified by:
createInstance in interface IFactory<T>


Copyright (c) Dawid Weiss, Stanislaw Osinski