com.liferay.faces.bridge.bean
Class BeanManagerMojarraImpl
java.lang.Object
com.liferay.faces.bridge.bean.BeanManagerCompatImpl
com.liferay.faces.bridge.bean.BeanManagerImpl
com.liferay.faces.bridge.bean.BeanManagerMojarraImpl
- All Implemented Interfaces:
- BeanManager
public class BeanManagerMojarraImpl
- extends BeanManagerImpl
Mojarra has a vendor-specific Service Provider Interface (SPI) for dependency injection called the InjectionProvider.
This class provides the ability to leverage the InjectionProvider instance for various operations.
- Author:
- Neil Griffin
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanManagerMojarraImpl
public BeanManagerMojarraImpl(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.
- Specified by:
invokePreDestroyMethods in interface BeanManager- Overrides:
invokePreDestroyMethods in class BeanManagerImpl
- 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.
Copyright © 2014 Liferay, Inc.. All Rights Reserved.