org.milyn.javabean.context
Class StaticVariableBinder
java.lang.Object
org.milyn.javabean.context.StaticVariableBinder
- All Implemented Interfaces:
- org.milyn.delivery.ContentHandler, org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.dom.DOMVisitAfter, org.milyn.delivery.dom.DOMVisitBefore, org.milyn.delivery.dom.DOMVisitor, org.milyn.delivery.sax.SAXElementVisitor, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitChildren, org.milyn.delivery.sax.SAXVisitor, org.milyn.delivery.Visitor
public class StaticVariableBinder
- extends Object
- implements org.milyn.delivery.sax.SAXElementVisitor, org.milyn.delivery.dom.DOMElementVisitor
Static variable binding visitor.
Binds resource paramater variables into the bean context (managed by the
BeanContext). The paramater values are all bound
into a bean accessor Map named "statvar", so variables bound in this way
can be referenced in expressions or templates as e.g "${statvar.xxx}"
(for static variable "xxx").
- Author:
- tom.fennelly@gmail.com
|
Method Summary |
void |
initialize()
|
void |
onChildElement(org.milyn.delivery.sax.SAXElement element,
org.milyn.delivery.sax.SAXElement childElement,
org.milyn.container.ExecutionContext executionContext)
|
void |
onChildText(org.milyn.delivery.sax.SAXElement element,
org.milyn.delivery.sax.SAXText childText,
org.milyn.container.ExecutionContext executionContext)
|
void |
visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext)
|
void |
visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
|
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext)
|
void |
visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticVariableBinder
public StaticVariableBinder()
initialize
@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
- Throws:
org.milyn.cdr.SmooksConfigurationException
visitBefore
public void visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
- Specified by:
visitBefore in interface org.milyn.delivery.sax.SAXVisitBefore
- Throws:
org.milyn.SmooksException
IOException
onChildText
public void onChildText(org.milyn.delivery.sax.SAXElement element,
org.milyn.delivery.sax.SAXText childText,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
- Specified by:
onChildText in interface org.milyn.delivery.sax.SAXVisitChildren
- Throws:
org.milyn.SmooksException
IOException
onChildElement
public void onChildElement(org.milyn.delivery.sax.SAXElement element,
org.milyn.delivery.sax.SAXElement childElement,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
- Specified by:
onChildElement in interface org.milyn.delivery.sax.SAXVisitChildren
- Throws:
org.milyn.SmooksException
IOException
visitAfter
public void visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
- Specified by:
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfter
- Throws:
org.milyn.SmooksException
IOException
visitBefore
public void visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException
- Specified by:
visitBefore in interface org.milyn.delivery.dom.DOMVisitBefore
- Throws:
org.milyn.SmooksException
visitAfter
public void visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException
- Specified by:
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfter
- Throws:
org.milyn.SmooksException
Copyright © 2018. All rights reserved.