public class BeanInstanceCreator extends Object implements DOMElementVisitor, SAXVisitBefore, SAXVisitAfter, ContentDeliveryConfigBuilderLifecycleListener, Producer, VisitLifecycleCleanable
BeanPopulator expansion configuration.| 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(Fragment fragment,
ExecutionContext executionContext) |
String |
getBeanId()
Get the beanId of this Bean configuration.
|
BeanRuntimeInfo |
getBeanRuntimeInfo()
Get the bean runtime information.
|
SmooksResourceConfiguration |
getConfig() |
Set<? extends Object> |
getProducts() |
void |
handle(ContentDeliveryConfigBuilderLifecycleEvent event) |
void |
initialize()
Set the resource configuration on the bean populator.
|
String |
toString() |
void |
visitAfter(Element element,
ExecutionContext executionContext) |
void |
visitAfter(ExecutionContext executionContext,
Fragment source) |
void |
visitAfter(SAXElement element,
ExecutionContext executionContext) |
void |
visitBefore(Element element,
ExecutionContext executionContext) |
void |
visitBefore(SAXElement element,
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 SmooksResourceConfiguration getConfig()
@Initialize public void initialize() throws SmooksConfigurationException
SmooksConfigurationException - Incorrectly configured resource.public void handle(ContentDeliveryConfigBuilderLifecycleEvent event) throws SmooksConfigurationException
handle in interface ContentDeliveryConfigBuilderLifecycleListenerSmooksConfigurationExceptionpublic BeanRuntimeInfo getBeanRuntimeInfo()
public void visitBefore(Element element, ExecutionContext executionContext) throws SmooksException
visitBefore in interface DOMVisitBeforeSmooksExceptionpublic void visitBefore(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
visitBefore in interface SAXVisitBeforeSmooksExceptionIOExceptionpublic void visitAfter(Element element, ExecutionContext executionContext) throws SmooksException
visitAfter in interface DOMVisitAfterSmooksExceptionpublic void visitAfter(SAXElement element, ExecutionContext executionContext) throws SmooksException, IOException
visitAfter in interface SAXVisitAfterSmooksExceptionIOExceptionpublic void visitAfter(ExecutionContext executionContext, Fragment source)
public Set<? extends Object> getProducts()
getProducts in interface Producerpublic void executeVisitLifecycleCleanup(Fragment fragment, ExecutionContext executionContext)
executeVisitLifecycleCleanup in interface VisitLifecycleCleanableCopyright © 2015. All rights reserved.