|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.jacob.Instanciator
Allows instanciation of objects.
ActiveMap,
Serialized Form| Field Summary | |
protected ConstructorOp |
constructor
|
| Method Summary | |
boolean |
equals(Object o)
|
ActiveMap |
getActiveMap()
|
ConstructorOp |
getConstructor()
|
static StoredObjectReference |
getInstance(ActiveMap activeMap)
Describe getInstance method here. |
static StoredObjectReference |
getInstance(ActiveMap activeMap,
ConstructorOp constructor)
Describe getInstance method here. |
int |
hashCode()
|
Object |
instanciate(ConstructorOp constructor,
Object[] args)
Instanciate a new object and associates it with a new key. |
Object |
instanciate(Object[] args)
Equivalent to instanciate(getConstructorOp(), args). |
Object |
instanciateWith(ConstructorOp constructor,
Object[] keys)
Instanciate a new object with parameters taken from the active map and associates it with a new key. |
Object |
instanciateWith(Object[] keys)
Equivalent to instanciateWith(getConstructorOp(),
args). |
ConstructorOp |
setConstructor(ConstructorOp constructor)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ConstructorOp constructor
| Method Detail |
public static StoredObjectReference getInstance(ActiveMap activeMap,
ConstructorOp constructor)
Describe getInstance method here.
activeMap - an ActiveMap valueconstructor - a ConstructorOp value
StoredObjectReference valuepublic boolean equals(Object o)
public int hashCode()
public static StoredObjectReference getInstance(ActiveMap activeMap)
Describe getInstance method here.
activeMap - an ActiveMap value
StoredObjectReference valuepublic ConstructorOp getConstructor()
public ConstructorOp setConstructor(ConstructorOp constructor)
public ActiveMap getActiveMap()
public Object instanciate(Object[] args)
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
Equivalent to instanciate(getConstructorOp(), args).
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetExceptioninstanciate(ConstructorOp, Object[])
public Object instanciate(ConstructorOp constructor,
Object[] args)
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
Instanciate a new object and associates it with a new key.
constructor - the constructor to use for the instanciationargs - the arguments used for the instanciation
InstantiationException - if the class that declares the underlying
constructor represents an abstract class.
InvocationTargetException - if the underlying constructor throws
an exception.
ExceptionInInitializerError - if the initialization provoked by
this method fails.
ClassCastException - if the class of the specified key or value
prevents it from being stored in this map.
IllegalArgumentException - if some aspect of this key or value
prevents it from being stored in this map.
NullPointerException - this map does not permit null keys or
values, and the specified key or value is null.
IllegalAccessException - if the underlying constructor is
inaccessible.
IllegalArgumentException - if the number of actual and formal
parameters differ, or if an unwrapping or method invocation conversion
fails.Map.put(Object, Object),
ConstructorOp.newInstance(Object[])
public Object instanciateWith(Object[] keys)
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
Equivalent to instanciateWith(getConstructorOp(),
args).
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetExceptioninstanciate(ConstructorOp, Object[])
public Object instanciateWith(ConstructorOp constructor,
Object[] keys)
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
Instanciate a new object with parameters taken from the active map and associates it with a new key.
The key arguments represent the stored objects
to use for the instanciation.
constructor - the constructor to use for the instanciationkeys - the mapping of the stored objects used for the
instanciation
InstantiationException - if the class that declares the underlying
constructor represents an abstract class.
InvocationTargetException - if the underlying constructor throws
an exception.
ExceptionInInitializerError - if the initialization provoked by
this method fails.
ClassCastException - if the class of the specified key or value
prevents it from being stored in this map.
IllegalArgumentException - if some aspect of this key or value
prevents it from being stored in this map.
NullPointerException - this map does not permit null keys or
values, and the specified key or value is null.
IllegalAccessException - if the underlying constructor is
inaccessible.
IllegalArgumentException - if the number of actual and formal
parameters differ, or if an unwrapping or method invocation conversion
fails.Map.put(Object, Object),
ConstructorOp.newInstance(Object[])public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||