public class BeanInstanceCreator extends Object implements org.milyn.delivery.dom.DOMElementVisitor, org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.ContentDeliveryConfigBuilderLifecycleListener, org.milyn.delivery.ordering.Producer, org.milyn.delivery.VisitLifecycleCleanable
| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_VAL_EXPRESSION |
| Constructor and Description |
|---|
BeanInstanceCreator()
Public default constructor.
|
BeanInstanceCreator(String beanId,
Class<?> beanClass)
Public default constructor.
|
BeanInstanceCreator(String beanId,
Class<T> beanClass,
Factory<? extends T> factory)
Public default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeVisitLifecycleCleanup(org.milyn.delivery.Fragment fragment,
org.milyn.container.ExecutionContext executionContext) |
String |
getBeanId()
Get the beanId of this Bean configuration.
|
BeanRuntimeInfo |
getBeanRuntimeInfo()
Get the bean runtime information.
|
org.milyn.cdr.SmooksResourceConfiguration |
getConfig() |
Set<? extends Object> |
getProducts() |
void |
handle(org.milyn.delivery.ContentDeliveryConfigBuilderLifecycleEvent event) |
void |
initialize()
Set the resource configuration on the bean populator.
|
String |
toString() |
void |
visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source) |
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 INIT_VAL_EXPRESSION
public BeanInstanceCreator()
public BeanInstanceCreator(String beanId, Class<?> beanClass)
beanId - The beanId under which the bean instance is registered in the bean context.beanClass - The bean runtime class.public String getBeanId()
public org.milyn.cdr.SmooksResourceConfiguration getConfig()
@Initialize
public void initialize()
throws org.milyn.cdr.SmooksConfigurationException
org.milyn.cdr.SmooksConfigurationException - Incorrectly configured resource.public void handle(org.milyn.delivery.ContentDeliveryConfigBuilderLifecycleEvent event)
throws org.milyn.cdr.SmooksConfigurationException
handle in interface org.milyn.delivery.ContentDeliveryConfigBuilderLifecycleListenerorg.milyn.cdr.SmooksConfigurationExceptionpublic BeanRuntimeInfo getBeanRuntimeInfo()
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 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(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionpublic 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 visitAfter(org.milyn.container.ExecutionContext executionContext,
org.milyn.delivery.Fragment source)
public Set<? extends Object> getProducts()
getProducts in interface org.milyn.delivery.ordering.Producerpublic void executeVisitLifecycleCleanup(org.milyn.delivery.Fragment fragment,
org.milyn.container.ExecutionContext executionContext)
executeVisitLifecycleCleanup in interface org.milyn.delivery.VisitLifecycleCleanableCopyright © 2016. All rights reserved.