|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.wire.binding.ClassBinding
public class ClassBinding
this Binding
specifies a ClassDescriptor
.
A Class descriptor is defined by a <class>
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 "classname", which specifies the name of the class to load as an object.
public class Foo { ... }The following Xml declaration will load the class 'Foo' and store it under the name 'c' in the WireContext.
<objects> <class name='c' classname='Foo' /> </objects>The object 'c' will be an instance of java.lang.Class<Foo>. The method
c.newInstance()
can for example be used to create a new instance of 'Foo'.
WireParser
Constructor Summary | |
---|---|
ClassBinding()
|
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 |
---|
public ClassBinding()
Method Detail |
---|
public java.lang.Object parse(org.w3c.dom.Element element, Parse parse, Parser parser)
Binding
parse
in interface Binding
Parser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |