org.jbpm.wire.descriptor
Class PropertiesDescriptor
java.lang.Object
org.jbpm.util.DefaultObservable
org.jbpm.wire.descriptor.AbstractDescriptor
org.jbpm.wire.descriptor.CollectionDescriptor
org.jbpm.wire.descriptor.MapDescriptor
org.jbpm.wire.descriptor.PropertiesDescriptor
- All Implemented Interfaces:
- java.io.Serializable, Observable, Descriptor
public class PropertiesDescriptor
- extends MapDescriptor
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
file
|
protected boolean |
isXml
|
protected java.lang.String |
resource
|
protected java.lang.String |
url
|
Method Summary |
java.lang.Object |
construct(WireContext wireContext)
constructs the object. |
java.lang.String |
getFile()
|
java.lang.String |
getResource()
|
java.lang.Class<?> |
getType(WireDefinition wireDefinition)
the type of the produced object or null if that is not available |
java.lang.String |
getUrl()
|
void |
initialize(java.lang.Object object,
WireContext wireContext)
called by the WireContext to initialize the specified object. |
boolean |
isXml()
|
protected void |
load(java.lang.Object object,
java.io.InputStream inputStream)
|
void |
setFile(java.lang.String file)
|
void |
setResource(java.lang.String resource)
|
void |
setUrl(java.lang.String url)
|
void |
setXml(boolean isXml)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
protected java.lang.String url
file
protected java.lang.String file
resource
protected java.lang.String resource
isXml
protected boolean isXml
PropertiesDescriptor
public PropertiesDescriptor()
construct
public java.lang.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(java.lang.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 java.lang.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(java.lang.Object object,
java.io.InputStream inputStream)
throws java.lang.Exception
- Throws:
java.lang.Exception
getFile
public java.lang.String getFile()
setFile
public void setFile(java.lang.String file)
getResource
public java.lang.String getResource()
setResource
public void setResource(java.lang.String resource)
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
isXml
public boolean isXml()
setXml
public void setXml(boolean isXml)