org.milyn.javabean
Class BeanInstancePopulator
java.lang.Object
org.milyn.javabean.BeanInstancePopulator
- 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.ordering.Consumer, org.milyn.delivery.ordering.Producer, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitor, org.milyn.delivery.Visitor
public class BeanInstancePopulator
- extends Object
- implements org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.ordering.Producer, org.milyn.delivery.ordering.Consumer
Bean instance populator visitor class.
- Author:
- tom.fennelly@gmail.com, maurice.zeijen@smies.com
|
Method Summary |
boolean |
consumes(Object object)
|
String |
getBeanId()
|
org.milyn.cdr.SmooksResourceConfiguration |
getConfig()
|
org.milyn.javabean.DataDecoder |
getDecoder()
|
org.milyn.javabean.DataDecoder |
getDecoder(org.milyn.delivery.ContentDeliveryConfig deliveryConfig)
|
Set<? extends Object> |
getProducts()
|
String |
getProperty()
|
String |
getWireBeanId()
|
void |
initialize()
Set the resource configuration on the bean populator. |
boolean |
isBeanWiring()
|
void |
populateAndSetPropertyValue(Object bean,
org.milyn.javabean.context.BeanContext beanContext,
org.milyn.javabean.repository.BeanId targetBeanId,
org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
|
void |
setBeanId(String beanId)
|
void |
setDecoder(org.milyn.javabean.DataDecoder decoder)
|
void |
setDefaultVal(String defaultVal)
|
void |
setExpression(org.milyn.expression.MVELExpressionEvaluator expression)
|
void |
setProperty(String property)
|
void |
setPropertyValue(String mapPropertyName,
Object dataObject,
org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
|
void |
setSetterMethod(String setterMethod)
|
void |
setTypeAlias(String typeAlias)
|
void |
setValueAttributeName(String valueAttributeName)
|
void |
setValueAttributePrefix(String valueAttributePrefix)
|
void |
setWireBeanId(String wireBeanId)
|
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 |
VALUE_ATTRIBUTE_NAME
public static final String VALUE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
VALUE_ATTRIBUTE_PREFIX
public static final String VALUE_ATTRIBUTE_PREFIX
- See Also:
- Constant Field Values
NOTIFY_POPULATE
public static final String NOTIFY_POPULATE
- See Also:
- Constant Field Values
BeanInstancePopulator
public BeanInstancePopulator()
getConfig
public org.milyn.cdr.SmooksResourceConfiguration getConfig()
setBeanId
public void setBeanId(String beanId)
getBeanId
public String getBeanId()
setWireBeanId
public void setWireBeanId(String wireBeanId)
getWireBeanId
public String getWireBeanId()
setExpression
public void setExpression(org.milyn.expression.MVELExpressionEvaluator expression)
setProperty
public void setProperty(String property)
getProperty
public String getProperty()
setSetterMethod
public void setSetterMethod(String setterMethod)
setValueAttributeName
public void setValueAttributeName(String valueAttributeName)
setValueAttributePrefix
public void setValueAttributePrefix(String valueAttributePrefix)
setTypeAlias
public void setTypeAlias(String typeAlias)
setDecoder
public void setDecoder(org.milyn.javabean.DataDecoder decoder)
getDecoder
public org.milyn.javabean.DataDecoder getDecoder()
setDefaultVal
public void setDefaultVal(String defaultVal)
isBeanWiring
public boolean isBeanWiring()
initialize
@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
- Set the resource configuration on the bean populator.
- Throws:
org.milyn.cdr.SmooksConfigurationException - Incorrectly configured resource.
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
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
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
populateAndSetPropertyValue
public void populateAndSetPropertyValue(Object bean,
org.milyn.javabean.context.BeanContext beanContext,
org.milyn.javabean.repository.BeanId targetBeanId,
org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
setPropertyValue
public void setPropertyValue(String mapPropertyName,
Object dataObject,
org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
getDecoder
public org.milyn.javabean.DataDecoder getDecoder(org.milyn.delivery.ContentDeliveryConfig deliveryConfig)
getProducts
public Set<? extends Object> getProducts()
- Specified by:
getProducts in interface org.milyn.delivery.ordering.Producer
consumes
public boolean consumes(Object object)
- Specified by:
consumes in interface org.milyn.delivery.ordering.Consumer
Copyright © 2018. All rights reserved.