org.ow2.orchestra.pvm.internal.wire.descriptor
Class PropertiesDescriptor
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.CollectionDescriptor
org.ow2.orchestra.pvm.internal.wire.descriptor.MapDescriptor
org.ow2.orchestra.pvm.internal.wire.descriptor.PropertiesDescriptor
- All Implemented Interfaces:
- Serializable, Observable, Descriptor
public class PropertiesDescriptor
- extends MapDescriptor
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
protected String url
file
protected String file
resource
protected String resource
isXml
protected boolean isXml
PropertiesDescriptor
public PropertiesDescriptor()
construct
public Object construct(WireContext wireContext)
- Description copied from interface:
Descriptor
- constructs the object.
- Specified by:
construct in interface Descriptor- Overrides:
construct in class CollectionDescriptor
- 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.
initialize
public void initialize(Object object,
WireContext wireContext)
- Description copied from interface:
Descriptor
- called by the WireContext to initialize the specified object. For more
information about initialization, see
WireContext section
lifecycle.
- Specified by:
initialize in interface Descriptor- Overrides:
initialize in class MapDescriptor
- Parameters:
object - object to initialize.wireContext - the context in which the object will be initialized.
getType
public Class<?> getType(WireDefinition wireDefinition)
- Description copied from interface:
Descriptor
- the type of the produced object or null if that is not available
- Specified by:
getType in interface Descriptor- Overrides:
getType in class AbstractDescriptor
load
protected void load(Object object,
InputStream inputStream)
throws Exception
- Throws:
Exception
getFile
public String getFile()
setFile
public void setFile(String file)
getResource
public String getResource()
setResource
public void setResource(String resource)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
isXml
public boolean isXml()
setXml
public void setXml(boolean isXml)
Copyright © 2011 OW2 Consortium. All Rights Reserved.