public class BeanInstanceCreator extends Object implements org.smooks.api.resource.visitor.sax.ng.BeforeVisitor, org.smooks.api.resource.visitor.sax.ng.AfterVisitor, org.smooks.api.delivery.event.ContentDeliveryConfigBuilderLifecycleListener, org.smooks.api.delivery.ordering.Producer, org.smooks.api.lifecycle.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.smooks.api.delivery.fragment.Fragment fragment,
org.smooks.api.ExecutionContext executionContext) |
String |
getBeanId()
Get the beanId of this Bean configuration.
|
BeanRuntimeInfo |
getBeanRuntimeInfo()
Get the bean runtime information.
|
org.smooks.api.resource.config.ResourceConfig |
getConfig() |
Set<?> |
getProducts() |
void |
handle(org.smooks.api.delivery.event.ContentDeliveryConfigBuilderLifecycleEvent event) |
void |
postConstruct()
Set the resource configuration on the bean populator.
|
String |
toString() |
void |
visitAfter(Element element,
org.smooks.api.ExecutionContext executionContext) |
void |
visitAfter(org.smooks.api.ExecutionContext executionContext,
org.smooks.api.delivery.fragment.Fragment source) |
void |
visitBefore(Element element,
org.smooks.api.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.smooks.api.resource.config.ResourceConfig getConfig()
@PostConstruct public void postConstruct() throws org.smooks.api.SmooksConfigException
org.smooks.api.SmooksConfigException
- Incorrectly configured resource.public void handle(org.smooks.api.delivery.event.ContentDeliveryConfigBuilderLifecycleEvent event) throws org.smooks.api.SmooksConfigException
handle
in interface org.smooks.api.delivery.event.ContentDeliveryConfigBuilderLifecycleListener
org.smooks.api.SmooksConfigException
public BeanRuntimeInfo getBeanRuntimeInfo()
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
public void visitAfter(org.smooks.api.ExecutionContext executionContext, org.smooks.api.delivery.fragment.Fragment source)
public Set<?> getProducts()
getProducts
in interface org.smooks.api.delivery.ordering.Producer
public void executeVisitLifecycleCleanup(org.smooks.api.delivery.fragment.Fragment fragment, org.smooks.api.ExecutionContext executionContext)
executeVisitLifecycleCleanup
in interface org.smooks.api.lifecycle.VisitLifecycleCleanable
Copyright © 2024. All rights reserved.