org.jbpm.wire.binding
Class RefBinding

java.lang.Object
  extended by org.jbpm.wire.binding.RefBinding
All Implemented Interfaces:
Binding

public class RefBinding
extends java.lang.Object
implements Binding

This Binding specifies a ReferenceDescriptor.

The object referenced should be declared somewhere else in the wireContext.

A reference descriptor is defined by a <ref> xml element.

This element can have an attribute "name", which specifies the name of the created object in the WireContext.

This element must have an attribute "object", which specifies the name of the referenced object.

Example

The following Xml declaration will get the object named 'o' in the wireContext, and store it under the name 'r'.
 <objects>
   <ref name='r' object='o' />
 </objects>

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

Constructor Summary
RefBinding()
           
 
Method Summary
 java.lang.Object parse(org.w3c.dom.Element element, Parse parse, Parser parser)
          translates the given element into a domain model java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefBinding

public RefBinding()
Method Detail

parse

public java.lang.Object parse(org.w3c.dom.Element element,
                              Parse parse,
                              Parser parser)
Description copied from interface: Binding
translates the given element into a domain model java object. Use the parse to report problems.

Specified by:
parse in interface Binding
Returns:
the domain model java object.
See Also:
Parser