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