org.ow2.orchestra.pvm.internal.wire.descriptor
Class ClassDescriptor
java.lang.Object
org.ow2.orchestra.pvm.internal.util.DefaultObservable
org.ow2.orchestra.pvm.internal.wire.descriptor.AbstractDescriptor
org.ow2.orchestra.pvm.internal.wire.descriptor.ClassDescriptor
- All Implemented Interfaces:
- Serializable, Observable, Descriptor
public class ClassDescriptor
- extends AbstractDescriptor
loads the class with the specified class name using the WireContext class
loader.
- Author:
- Tom Baeyens, Guillaume Porcher (documentation)
- See Also:
WireContext.getClassLoader(),
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDescriptor
public ClassDescriptor()
construct
public Object construct(WireContext wireContext)
- loads the class from the class loader of the specified WireContext.
- Parameters:
wireContext - WireContext in which the object is created. This is also
the WireContext where the object will search for other
object that may be needed during the initialization phase.
- Returns:
- the constructed object.
- Throws:
WireException - if the class could not be loaded.
setClassName
public void setClassName(String className)
setClass
public void setClass(Class<?> clazz)
Copyright © 2011 OW2 Consortium. All Rights Reserved.