com.liferay.faces.bridge.bean.internal
Class PreDestroyInvokerWrapper
java.lang.Object
com.liferay.faces.bridge.bean.internal.PreDestroyInvokerWrapper
- All Implemented Interfaces:
- PreDestroyInvoker, javax.faces.FacesWrapper<PreDestroyInvoker>
public abstract class PreDestroyInvokerWrapper
- extends Object
- implements PreDestroyInvoker, javax.faces.FacesWrapper<PreDestroyInvoker>
- Author:
- Neil Griffin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreDestroyInvokerWrapper
public PreDestroyInvokerWrapper()
invokeAnnotatedMethods
public void invokeAnnotatedMethods(Object managedBean,
boolean preferPreDestroy)
- Description copied from interface:
PreDestroyInvoker
- This method services as a convenience routine for invoking all methods of the specified managed-bean are marked
with the
PreDestroy 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.
- Specified by:
invokeAnnotatedMethods in interface PreDestroyInvoker
- Parameters:
managedBean - 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.
getWrapped
public abstract PreDestroyInvoker getWrapped()
- Specified by:
getWrapped in interface javax.faces.FacesWrapper<PreDestroyInvoker>
Copyright © 2015 Liferay, Inc.. All rights reserved.