Package org.smooks.engine.bean.lifecycle
Class DefaultBeanContextLifecycleEvent
- java.lang.Object
-
- org.smooks.engine.bean.lifecycle.DefaultBeanContextLifecycleEvent
-
- All Implemented Interfaces:
BeanContextLifecycleEvent
public class DefaultBeanContextLifecycleEvent extends Object implements BeanContextLifecycleEvent
-
-
Constructor Summary
Constructors Constructor Description DefaultBeanContextLifecycleEvent(ExecutionContext executionContext, Fragment<?> source, BeanLifecycle lifecycle, BeanId beanId, Object bean)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getBean()
BeanId
getBeanId()
ExecutionContext
getExecutionContext()
BeanLifecycle
getLifecycle()
Fragment<?>
getSource()
Get the even source fragment.
-
-
-
Constructor Detail
-
DefaultBeanContextLifecycleEvent
public DefaultBeanContextLifecycleEvent(ExecutionContext executionContext, Fragment<?> source, BeanLifecycle lifecycle, BeanId beanId, Object bean)
Public constructor.- Parameters:
executionContext
-source
- Source fragment name.beanId
- Source bean.lifecycle
- Lifecycle.bean
- Bean instance.
-
-
Method Detail
-
getExecutionContext
public ExecutionContext getExecutionContext()
- Specified by:
getExecutionContext
in interfaceBeanContextLifecycleEvent
- Returns:
- the executionContext
-
getSource
public Fragment<?> getSource()
Get the even source fragment.- Specified by:
getSource
in interfaceBeanContextLifecycleEvent
- Returns:
- Source fragment.
-
getLifecycle
public BeanLifecycle getLifecycle()
- Specified by:
getLifecycle
in interfaceBeanContextLifecycleEvent
- Returns:
- the lifecycle
-
getBeanId
public BeanId getBeanId()
- Specified by:
getBeanId
in interfaceBeanContextLifecycleEvent
- Returns:
- the beanId
-
getBean
public Object getBean()
- Specified by:
getBean
in interfaceBeanContextLifecycleEvent
- Returns:
- the bean
-
-