electric.util.constructor
Class Factory
java.lang.Object
electric.util.constructor.Factory
- All Implemented Interfaces:
- IInstantiator
- public class Factory
- extends java.lang.Object
- implements IInstantiator
Factory.
- Author:
- webMethods
Constructor Summary |
Factory()
For use in EXML de/serialization. |
Factory(Element element)
|
Factory(java.lang.String methodName)
|
Factory(java.lang.String className,
java.lang.String methodName,
java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
methodName
public java.lang.String methodName
args
public java.lang.String[] args
className
public java.lang.String className
Factory
public Factory()
- For use in EXML de/serialization.
Factory
public Factory(java.lang.String methodName)
- Parameters:
methodName
-
Factory
public Factory(java.lang.String className,
java.lang.String methodName,
java.lang.String[] args)
- Parameters:
className
- methodName
- args
-
Factory
public Factory(Element element)
- Parameters:
element
-
newInstance
public java.lang.Object newInstance()
throws java.lang.Throwable
- Specified by:
newInstance
in interface IInstantiator
- Throws:
java.lang.Throwable
writeDescriptor
public void writeDescriptor(Element descriptor)
- Specified by:
writeDescriptor
in interface IInstantiator
- Parameters:
descriptor
-
getDescriptor
public Element getDescriptor()
- Specified by:
getDescriptor
in interface IInstantiator
getArgs
protected static java.lang.String[] getArgs(Element element)
- Parameters:
element
-
getReturnType
public java.lang.Class getReturnType()
throws java.lang.ClassNotFoundException
- Specified by:
getReturnType
in interface IInstantiator
- Throws:
java.lang.ClassNotFoundException
getClassName
public java.lang.String getClassName()
- Description copied from interface:
IInstantiator
- There is no way to get the name of the return type without having the
factory/class available.
- Specified by:
getClassName
in interface IInstantiator
setClassLoader
public void setClassLoader(java.lang.ClassLoader loader)
- Specified by:
setClassLoader
in interface IInstantiator
- Parameters:
loader
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface IInstantiator
copyright© 2001-2004 by webMethods All Rights Reserved.