Class PreDestroyCustomScopeEvent

java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.PreDestroyCustomScopeEvent
All Implemented Interfaces:
Serializable

@Deprecated(since="4.1", forRemoval=true) public class PreDestroyCustomScopeEvent extends SystemEvent
Deprecated, for removal: This API element is subject to removal in a future version.
because CustomScope has been removed from Faces in favor of CDI.

This class is provided to allow custom scopes to publish a "pre construct" event in the same way that other scopes do to let the application become aware of the beginning of the scope. The runtime must listen for this event and invoke any PreDestroy annotated methods on any of the beans in this scope as appropriate. See the example code on PostConstructCustomScopeEvent for a usage example, replacing classes as appropriate to make sense for this class.

Since:
2.0
See Also: