com.liferay.faces.bridge.bean
Class BeanManagerImpl
java.lang.Object
com.liferay.faces.bridge.bean.BeanManagerCompatImpl
com.liferay.faces.bridge.bean.BeanManagerImpl
- All Implemented Interfaces:
- BeanManager
- Direct Known Subclasses:
- BeanManagerMojarraImpl
public class BeanManagerImpl
- extends BeanManagerCompatImpl
- Author:
- Neil Griffin
|
Method Summary |
protected boolean |
hasBridgePreDestroyAnnotation(Method method)
Determines whether or not the specified method is annotated with the BridgePreDestroy annotation. |
protected boolean |
hasPreDestroyAnnotation(Method method)
Determines whether or not the specified method is annotated with the PreDestroy annotation. |
void |
invokePreDestroyMethods(Object managedBean,
boolean preferPreDestroy)
This method services as a convenience routine for invoking all methods of the specified managed-bean are marked
with the javax.annotation.PreDestroy annotation. |
boolean |
isManagedBean(String name,
Object value)
Determines whether or not the specified value is a bean that is managed by the JSF managed-bean facility. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanManagerImpl
public BeanManagerImpl(List<ConfiguredBean> configuredBeans)
invokePreDestroyMethods
public void invokePreDestroyMethods(Object managedBean,
boolean preferPreDestroy)
- Description copied from interface:
BeanManager
- This method services as a convenience routine for invoking all methods of the specified managed-bean are marked
with the javax.annotation.PreDestroy annotation. The JavaDocs state that if an exception is thrown by any of the
PreDestroy annotated methods, they are required to be caught and NOT re-thrown. Instead, exceptions may be
logged.
- Parameters:
managedBean - The managed-bean that is to have its PreDestroy annotated method(s) invoked, if any.preferPreDestroy - Boolean 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.
isManagedBean
public boolean isManagedBean(String name,
Object value)
- Description copied from interface:
BeanManager
- Determines whether or not the specified value is a bean that is managed by the JSF managed-bean facility.
Copyright © 2014 Liferay, Inc.. All Rights Reserved.