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
| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFY_POPULATE |
static String |
VALUE_ATTRIBUTE_NAME |
static String |
VALUE_ATTRIBUTE_PREFIX |
| Constructor and Description |
|---|
BeanInstancePopulator() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String VALUE_ATTRIBUTE_NAME
public static final String VALUE_ATTRIBUTE_PREFIX
public static final String NOTIFY_POPULATE
public org.milyn.cdr.SmooksResourceConfiguration getConfig()
public void setBeanId(String beanId)
public String getBeanId()
public void setWireBeanId(String wireBeanId)
public String getWireBeanId()
public void setExpression(org.milyn.expression.MVELExpressionEvaluator expression)
public void setProperty(String property)
public String getProperty()
public void setSetterMethod(String setterMethod)
public void setValueAttributeName(String valueAttributeName)
public void setValueAttributePrefix(String valueAttributePrefix)
public void setTypeAlias(String typeAlias)
public void setDecoder(org.milyn.javabean.DataDecoder decoder)
public org.milyn.javabean.DataDecoder getDecoder()
public void setDefaultVal(String defaultVal)
public boolean isBeanWiring()
@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
org.milyn.cdr.SmooksConfigurationException - Incorrectly configured resource.public void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitBefore in interface org.milyn.delivery.dom.DOMVisitBeforeorg.milyn.SmooksExceptionpublic void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionpublic void visitBefore(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitBefore in interface org.milyn.delivery.sax.SAXVisitBeforeorg.milyn.SmooksExceptionIOExceptionpublic void visitAfter(org.milyn.delivery.sax.SAXElement element,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfterorg.milyn.SmooksExceptionIOExceptionpublic 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)
public void setPropertyValue(String mapPropertyName, Object dataObject, org.milyn.container.ExecutionContext executionContext, org.milyn.delivery.Fragment source)
public org.milyn.javabean.DataDecoder getDecoder(org.milyn.delivery.ContentDeliveryConfig deliveryConfig)
public Set<? extends Object> getProducts()
getProducts in interface org.milyn.delivery.ordering.Producerpublic boolean consumes(Object object)
consumes in interface org.milyn.delivery.ordering.ConsumerCopyright © 2016. All rights reserved.