public abstract class PreDestroyInvokerWrapper extends java.lang.Object implements PreDestroyInvoker, javax.faces.FacesWrapper<PreDestroyInvoker>
| Constructor and Description |
|---|
PreDestroyInvokerWrapper() |
| Modifier and Type | Method and Description |
|---|---|
abstract PreDestroyInvoker |
getWrapped() |
void |
invokeAnnotatedMethods(java.lang.Object managedBean,
boolean preferPreDestroy)
This method services as a convenience routine for invoking all methods of the specified managed-bean are marked
with the
PreDestroy or BridgePreDestroy
annotation. |
public abstract PreDestroyInvoker getWrapped()
getWrapped in interface javax.faces.FacesWrapper<PreDestroyInvoker>public void invokeAnnotatedMethods(java.lang.Object managedBean,
boolean preferPreDestroy)
PreDestroyInvokerPreDestroy or BridgePreDestroy
annotation. The JavaDocs state that if an exception is thrown by any of the pre-destroy annotated methods, they
are required to be caught and NOT re-thrown. Instead, exceptions are logged.invokeAnnotatedMethods in interface PreDestroyInvokermanagedBean - The managed-bean that is to have its PreDestroy or BridgePreDestroy annotated method(s) invoked, if any.preferPreDestroy - Flag indicating that methods annotated with PreDestroy should
be preferably invoked over those annotated with BridgePreDestroy.Copyright © 2022 Liferay, Inc.. All Rights Reserved.