org.jbpm.wire
Class WireDefinition

java.lang.Object
  extended by org.jbpm.wire.WireDefinition
All Implemented Interfaces:
java.io.Serializable

public class WireDefinition
extends java.lang.Object
implements java.io.Serializable

map of Descriptors that serve as input for a WireContext.

Author:
Tom Baeyens, Guillaume Porcher (documentation)
See Also:
Serialized Form

Constructor Summary
WireDefinition()
           
 
Method Summary
 void addDescriptor(Descriptor descriptor)
           
 Descriptor addDescriptor(java.lang.String objectName, Descriptor descriptor)
           
 void addEagerInitObjectName(java.lang.String eagerInitObjectName)
           
 java.lang.ClassLoader getClassLoader()
           
 Descriptor getDescriptor(java.lang.String objectName)
          the descriptor with the given name from the WireDefinition or null if the object doesn't have a descriptor.
 java.lang.String getDescriptorName(java.lang.Class<?> type)
           
 java.util.Map<java.lang.String,Descriptor> getDescriptors()
           
 java.util.List<java.lang.String> getEagerInitNames()
           
 boolean hasDescriptor(java.lang.String objectName)
           
 Descriptor removeDescriptor(java.lang.String objectName)
           
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setDescriptors(java.util.Map<java.lang.String,Descriptor> descriptors)
           
 void setEagerInitNames(java.util.List<java.lang.String> eagerInitNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireDefinition

public WireDefinition()
Method Detail

addDescriptor

public void addDescriptor(Descriptor descriptor)

getDescriptorName

public java.lang.String getDescriptorName(java.lang.Class<?> type)

getDescriptor

public Descriptor getDescriptor(java.lang.String objectName)
the descriptor with the given name from the WireDefinition or null if the object doesn't have a descriptor.


addDescriptor

public Descriptor addDescriptor(java.lang.String objectName,
                                Descriptor descriptor)
Returns:
previous Descriptor associated with the given name, or null if there was no Descriptor for this name.

removeDescriptor

public Descriptor removeDescriptor(java.lang.String objectName)
Returns:
previous Descriptor associated with the given name, or null if there was no Descriptor for this name.

hasDescriptor

public boolean hasDescriptor(java.lang.String objectName)

addEagerInitObjectName

public void addEagerInitObjectName(java.lang.String eagerInitObjectName)

getClassLoader

public java.lang.ClassLoader getClassLoader()

getDescriptors

public java.util.Map<java.lang.String,Descriptor> getDescriptors()

getEagerInitNames

public java.util.List<java.lang.String> getEagerInitNames()

setEagerInitNames

public void setEagerInitNames(java.util.List<java.lang.String> eagerInitNames)

setDescriptors

public void setDescriptors(java.util.Map<java.lang.String,Descriptor> descriptors)

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)