|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.ObjectLoader
Provides the ability to create instances of dynamically loaded classes.
$Log: ObjectLoader.java,v $
Revision 1.5 2004/09/21 22:22:00 gjanee
Rewrite to use class ExtendedProperties.
Revision 1.4 2004/03/02 23:33:01 gjanee
Added a version of loadObject that invokes a
constructor that accepts three arguments, a Global, a
File, and a String.
Revision 1.3 2001/08/11 03:34:33 gjanee
Added a version of loadObject that invokes a
constructor that accepts two arguments, a File and a
String.
Revision 1.2 2001/02/21 22:25:14 gjanee
Added a version of loadObject that invokes a
constructor that accepts a single String
argument.
Revision 1.1 2000/10/11 17:59:00 gjanee
Initial revision
| Method Summary | |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String argument,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String methodName,
java.io.File file,
java.lang.String argument,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.Global global,
java.io.File file,
java.lang.String argument,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String argument,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
static java.lang.Object |
loadObject(java.lang.String className,
java.lang.String methodName,
java.lang.String argument,
java.lang.String interfaceName)
Dynamically loads a class and returns an instance of the class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String argument,
java.lang.String interfaceName)
throws InternalErrorException
methodName is M, the instance is created
by calling the method of the class having the profile:
It is checked that the returned object reference is non-null, and that the returned object is an instance of class/interfacepublic static ObjectM(ExtendedProperties, String)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".methodName - The name of the class's instance-creating method, e.g.,
"createDriver".propertyList - Passed to method methodName.argument - Passed to method methodName.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String interfaceName)
throws InternalErrorException
methodName is M, the instance is created
by calling the method of the class having the profile:
It is checked that the returned object reference is non-null, and that the returned object is an instance of class/interfacepublic static ObjectM(ExtendedProperties)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".methodName - The name of the class's instance-creating method, e.g.,
"createDriver".propertyList - Passed to method methodName.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String methodName,
java.lang.String argument,
java.lang.String interfaceName)
throws InternalErrorException
methodName is M, the instance is created
by calling the method of the class having the profile:
It is checked that the returned object reference is non-null, and that the returned object is an instance of class/interfacepublic static ObjectM(String)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".methodName - The name of the class's instance-creating method, e.g.,
"createDriver".argument - Passed to method methodName.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String argument,
java.lang.String interfaceName)
throws InternalErrorException
className is C, the instance is created
by calling the constructor having the profile:
It is checked that the created object is an instance of class/interfacepublicC(String)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".argument - Passed to the constructor.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String methodName,
java.io.File file,
java.lang.String argument,
java.lang.String interfaceName)
throws InternalErrorException
methodName is M, the instance is created
by calling the method of the class having the profile:
It is checked that the returned object reference is non-null, and that the returned object is an instance of class/interfacepublic static ObjectM(File, String)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".methodName - The name of the class's instance-creating method, e.g.,
"createDriver".file - Passed to method methodName.argument - Passed to method methodName.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
public static java.lang.Object loadObject(java.lang.String className,
java.lang.String methodName,
edu.ucsb.adl.middleware.Global global,
java.io.File file,
java.lang.String argument,
java.lang.String interfaceName)
throws InternalErrorException
methodName is M, the instance is created
by calling the method of the class having the profile:
It is checked that the returned object reference is non-null, and that the returned object is an instance of class/interfacepublic static ObjectM(Global, File, String)
interfaceName.
className - The fully-qualified name of the class to load, e.g.,
"edu.bigmac.MyDriver".methodName - The name of the class's instance-creating method, e.g.,
"createDriver".global - Passed to method methodName.file - Passed to method methodName.argument - Passed to method methodName.interfaceName - The fully-qualified name of the class or interface of which the
returned object should be an instance, e.g.,
"edu.ucsb.adl.middleware.MetadataDriver".
interfaceName.
InternalErrorException - If any error is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||