public class StaticVariableBinder extends Object implements org.smooks.api.resource.visitor.sax.ng.ElementVisitor
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").Modifier and Type | Field and Description |
---|---|
protected org.smooks.api.ApplicationContext |
appContext |
protected org.smooks.api.bean.repository.BeanId |
beanId |
protected org.smooks.api.resource.config.ResourceConfig |
resourceConfig |
protected static String |
STATVAR |
Constructor and Description |
---|
StaticVariableBinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindParamaters(org.smooks.api.ExecutionContext executionContext,
org.smooks.api.delivery.fragment.Fragment<?> source) |
protected void |
bindParameter(org.smooks.api.resource.config.Parameter<?> parameter,
org.smooks.api.ExecutionContext executionContext,
org.smooks.api.delivery.fragment.Fragment<?> source) |
void |
postConstruct() |
void |
visitAfter(Element element,
org.smooks.api.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.smooks.api.ExecutionContext executionContext) |
void |
visitChildElement(Element childElement,
org.smooks.api.ExecutionContext executionContext) |
void |
visitChildText(CharacterData characterData,
org.smooks.api.ExecutionContext executionContext) |
protected static final String STATVAR
protected org.smooks.api.bean.repository.BeanId beanId
@Inject protected org.smooks.api.resource.config.ResourceConfig resourceConfig
@Inject protected org.smooks.api.ApplicationContext appContext
@PostConstruct public void postConstruct() throws org.smooks.api.SmooksConfigException
org.smooks.api.SmooksConfigException
public void visitBefore(Element element, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitBefore
in interface org.smooks.api.resource.visitor.sax.ng.BeforeVisitor
org.smooks.api.SmooksException
public void visitAfter(Element element, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitAfter
in interface org.smooks.api.resource.visitor.sax.ng.AfterVisitor
org.smooks.api.SmooksException
protected void bindParamaters(org.smooks.api.ExecutionContext executionContext, org.smooks.api.delivery.fragment.Fragment<?> source)
protected void bindParameter(org.smooks.api.resource.config.Parameter<?> parameter, org.smooks.api.ExecutionContext executionContext, org.smooks.api.delivery.fragment.Fragment<?> source)
public void visitChildText(CharacterData characterData, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitChildText
in interface org.smooks.api.resource.visitor.sax.ng.ChildrenVisitor
org.smooks.api.SmooksException
public void visitChildElement(Element childElement, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitChildElement
in interface org.smooks.api.resource.visitor.sax.ng.ChildrenVisitor
org.smooks.api.SmooksException
Copyright © 2024. All rights reserved.