|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFacemorph.DataBase.ObjectFactory
public class ObjectFactory
Nested Class Summary | |
---|---|
static class |
ObjectFactory.DefaultFactoryMeme
|
static class |
ObjectFactory.FactoryMeme
All Classes included in the factory system must have an assosiated FactoryMeme class This allows the Factory Object Class to be queried to suitability for particular data. |
protected static class |
ObjectFactory.NoHandlerFoundException
|
protected static class |
ObjectFactory.ObjectFactoryException
|
Constructor Summary | |
---|---|
ObjectFactory()
|
Method Summary | |
---|---|
static boolean |
addObjectType(ObjectFactory.FactoryMeme newType)
Adds a new type to the factory system |
static java.util.Vector<ObjectFactory.FactoryMeme> |
findClassesThatExtend(java.lang.Class c)
Return all instanced classes that extend the given class |
static java.lang.Class |
findFirstClassThatHandles(java.lang.String typeInfo,
boolean fully)
Returns the first class in the list (order undefined) that can handle the given type info |
static ObjectFactory.FactoryMeme |
findFirstFactoryMemeThatHandles(java.lang.String typeInfo,
boolean fully)
Returns the first factory meme in the list (order undefined) that can handle the given type info |
static java.util.Vector<ObjectFactory.FactoryMeme> |
findHandlers(java.lang.String typeInfo,
boolean fully)
Returns a list of all factory memes in the list (order undefined) that can handle the given type info |
static boolean |
hasObjectType(ObjectFactory.FactoryMeme type)
|
static java.lang.Object |
instantiate(java.lang.String typeInfo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectFactory()
Method Detail |
---|
public static boolean addObjectType(ObjectFactory.FactoryMeme newType)
newType
- the FactoryMeme associated with the new type
public static boolean hasObjectType(ObjectFactory.FactoryMeme type)
public static java.lang.Object instantiate(java.lang.String typeInfo) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static ObjectFactory.FactoryMeme findFirstFactoryMemeThatHandles(java.lang.String typeInfo, boolean fully)
typeInfo
- a string of type datafully
- true if the class must be able to fully instantiate the
data, false if a super-class will suffice
public static java.util.Vector<ObjectFactory.FactoryMeme> findHandlers(java.lang.String typeInfo, boolean fully)
typeInfo
- a string of type datafully
- true if the class must be able to fully instantiate the
data, false if a super-class will suffice
public static java.lang.Class findFirstClassThatHandles(java.lang.String typeInfo, boolean fully)
typeInfo
- a string of type datafully
- true if the class must be able to fully instantiate the
data, false if a super-class will suffice
public static java.util.Vector<ObjectFactory.FactoryMeme> findClassesThatExtend(java.lang.Class c)
c
- class to find instances and subclasses of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |