|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.AbstractFactory<InstanceFactory> nz.ac.waikato.mcennis.rat.reusablecores.instancefactory.InstanceFactoryFactory
public class InstanceFactoryFactory
Static class that holds a reference to all known factories for transforming objects to Instance objects indexed by object class. If the class is not in the registry, the DefaultInstanceFactory is returned instead.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
---|
map, properties |
Method Summary | |
---|---|
InstanceFactory |
create(java.lang.Class type)
Returns the InstanceFactory that transforms object of the type determined by the given class object or the DefaultInstanceFactory if no factory of the correct type is given. |
InstanceFactory |
create(Properties props)
Create the given object using the settings in the Properties object. |
InstanceFactory |
create(java.lang.String name)
|
InstanceFactory |
create(java.lang.String classType,
Properties parameters)
|
Parameter |
getClassParameter()
Return the parameter containing the name of the default type produced by this object. |
static InstanceFactoryFactory |
newInstance()
Creates the factory if necessary and then returns a reference to this registry |
Methods inherited from class nz.ac.waikato.mcennis.rat.AbstractFactory |
---|
addDefaultProperty, addType, check, check, getKnownTypes, getParameter, getParameter, setDefaultProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InstanceFactoryFactory newInstance()
public InstanceFactory create(java.lang.Class type)
type
- class of object to transform
public InstanceFactory create(java.lang.String classType, Properties parameters)
public InstanceFactory create(Properties props)
AbstractFactory
create
in class AbstractFactory<InstanceFactory>
props
- parameters used to control the factory.
public InstanceFactory create(java.lang.String name)
public Parameter getClassParameter()
AbstractFactory
getClassParameter
in class AbstractFactory<InstanceFactory>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |