org.jboss.solder.serviceHandler
Class ServiceHandlerBeanLifecycle<T,H>
java.lang.Object
org.jboss.solder.serviceHandler.ServiceHandlerBeanLifecycle<T,H>
- Type Parameters:
T - H -
- All Implemented Interfaces:
- ContextualLifecycle<T>
public class ServiceHandlerBeanLifecycle<T,H>
- extends Object
- implements ContextualLifecycle<T>
Bean lifecycle for ServiceHandler beans
- Author:
- Stuart Douglas
|
Method Summary |
T |
create(javax.enterprise.inject.spi.Bean<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Callback invoked by a Seam Solder created bean when
Contextual.create(CreationalContext) is called. |
void |
destroy(javax.enterprise.inject.spi.Bean<T> bean,
T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Callback invoked by a Seam Solder created bean when
Contextual.destroy(Object, CreationalContext) is called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceHandlerBeanLifecycle
public ServiceHandlerBeanLifecycle(Class<? extends T> classToImplement,
Class<H> handlerClass,
javax.enterprise.inject.spi.BeanManager manager)
create
public T create(javax.enterprise.inject.spi.Bean<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Description copied from interface:
ContextualLifecycle
- Callback invoked by a Seam Solder created bean when
Contextual.create(CreationalContext) is called.
- Specified by:
create in interface ContextualLifecycle<T>
- Parameters:
bean - the bean initiating the callbackcreationalContext - the context in which this instance was created
destroy
public void destroy(javax.enterprise.inject.spi.Bean<T> bean,
T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Description copied from interface:
ContextualLifecycle
- Callback invoked by a Seam Solder created bean when
Contextual.destroy(Object, CreationalContext) is called.
- Specified by:
destroy in interface ContextualLifecycle<T>
- Parameters:
bean - the bean initiating the callbackinstance - the contextual instance to destroycreationalContext - the context in which this instance was created
Copyright © 2008-2011 Seam Framework. All Rights Reserved.