org.jboss.solder.serviceHandler
Class ServiceHandlerBeanLifecycle<T,H>

java.lang.Object
  extended by 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

Constructor Summary
ServiceHandlerBeanLifecycle(Class<? extends T> classToImplement, Class<H> handlerClass, javax.enterprise.inject.spi.BeanManager manager)
           
 
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
 

Constructor Detail

ServiceHandlerBeanLifecycle

public ServiceHandlerBeanLifecycle(Class<? extends T> classToImplement,
                                   Class<H> handlerClass,
                                   javax.enterprise.inject.spi.BeanManager manager)
Method Detail

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 callback
creationalContext - 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 callback
instance - the contextual instance to destroy
creationalContext - the context in which this instance was created


Copyright © 2008-2011 Seam Framework. All Rights Reserved.