|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.type.GenericObjectFactory<T>
public class GenericObjectFactory<T>
An ObjectFactory implementation that simply uses a specific Class to
fabricate instances. If the Class has a constructor taking a single argument
of type HGHandle[] than this constructor is used in a call to the
make(HGHandle [] targetSet) method. Otherwise, if that latter version of make
is called, an exception will be thrown. Note that the implementation doesn't check whether the
Class that it handles actually implements the HGLink interface.
| Constructor Summary | |
|---|---|
GenericObjectFactory(java.lang.Class<T> type)
|
|
| Method Summary | |
|---|---|
java.lang.Class<T> |
getType()
Return the Class of the objects being constructed by this factory. |
T |
make()
Create a new run-time instance of the type this factory is responsible for. |
T |
make(HGHandle[] targetSet)
Create a new run-time HGLink instance of the type this factory is
responsible for. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericObjectFactory(java.lang.Class<T> type)
| Method Detail |
|---|
public java.lang.Class<T> getType()
ObjectFactory
Return the Class of the objects being constructed by this factory.
getType in interface ObjectFactory<T>public T make()
ObjectFactoryCreate a new run-time instance of the type this factory is responsible for.
make in interface ObjectFactory<T>public T make(HGHandle[] targetSet)
ObjectFactoryCreate a new run-time HGLink instance of the type this factory is
responsible for.
make in interface ObjectFactory<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||