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.
Show replies by date