com.liferay.faces.bridge.bean.internal
Class PreDestroyInvokerImpl
java.lang.Object
com.liferay.faces.bridge.bean.internal.PreDestroyInvokerImpl
- All Implemented Interfaces:
- PreDestroyInvoker
- Direct Known Subclasses:
- PreDestroyInvokerMojarraImpl
public class PreDestroyInvokerImpl
- extends Object
- implements PreDestroyInvoker
- Author:
- Neil Griffin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreDestroyInvokerImpl
public PreDestroyInvokerImpl()
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.
hasBridgePreDestroyAnnotation
protected boolean hasBridgePreDestroyAnnotation(Method method)
- Determines whether or not the specified method is annotated with the
BridgePreDestroy annotation. Note
that the method signature must also have a void return type an zero parameters in order for this method to return
true.
- Parameters:
method - The method to check.
- Returns:
- true if the specified method is annotated with a PreDestroy annotation.
hasPreDestroyAnnotation
protected boolean hasPreDestroyAnnotation(Method method)
- Determines whether or not the specified method is annotated with the
PreDestroy
annotation. Note that the method signature must also have a void return type an zero parameters in order for this
method to return true.
- Parameters:
method - The method to check.
- Returns:
- true if the specified method is annotated with a PreDestroy annotation.
Copyright © 2015 Liferay, Inc.. All rights reserved.