electric.util.constructor
Class Constructor

java.lang.Object
  extended byelectric.util.constructor.Constructor
All Implemented Interfaces:
IInstantiator

public class Constructor
extends java.lang.Object
implements IInstantiator

Constructor.

Author:
webMethods

Field Summary
 java.lang.Class[] argClasses
           
 java.lang.String[] args
           
 java.lang.String className
           
protected  java.lang.ClassLoader loader
           
 
Constructor Summary
Constructor()
          For use in EXML de/serialization.
Constructor(Element element)
           
Constructor(java.lang.String className, java.lang.Class[] argClasses, java.lang.String[] args)
           
Constructor(java.lang.String className, java.lang.String[] args)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getClassName()
          There is no way to get the name of the return type without having the factory/class available.
 Element getDescriptor()
           
 java.lang.Class getReturnType()
           
 java.lang.Object newInstance()
           
 void setClassLoader(java.lang.ClassLoader loader)
           
 void writeDescriptor(Element descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

public java.lang.String[] args

argClasses

public java.lang.Class[] argClasses

className

public java.lang.String className

loader

protected transient java.lang.ClassLoader loader
Constructor Detail

Constructor

public Constructor()
For use in EXML de/serialization.


Constructor

public Constructor(java.lang.String className,
                   java.lang.String[] args)
Parameters:
className -
args -

Constructor

public Constructor(java.lang.String className,
                   java.lang.Class[] argClasses,
                   java.lang.String[] args)
Parameters:
className -
argClasses -
args -

Constructor

public Constructor(Element element)
Parameters:
element -
Method Detail

writeDescriptor

public void writeDescriptor(Element descriptor)
Specified by:
writeDescriptor in interface IInstantiator
Parameters:
descriptor -

getDescriptor

public Element getDescriptor()
Specified by:
getDescriptor in interface IInstantiator
Returns:

newInstance

public java.lang.Object newInstance()
                             throws java.lang.Throwable
Specified by:
newInstance in interface IInstantiator
Throws:
java.lang.Throwable

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.