[webbeans-dev] Context.destroy()

Shane Bryzak shane.bryzak at jboss.com
Thu Jul 3 21:18:57 EDT 2008


This section of the spec suggests that the javax.webbeans.Context 
interface needs a destroy() method also:

9.1.2. Context destruction
At certain points in the execution of the program, the context 
associated with the current thread is destroyed. When a context
is destroyed, the Context implementation must destroy all component 
instances associated with the current context by
passing each instance to the destroy() method of the Component object 
representing the component. A destroyed instance
must not subsequently be returned by the get() method.




More information about the weld-dev mailing list