com.liferay.faces.bridge.bean
Interface BeanManager

All Known Implementing Classes:
BeanManagerCompatImpl, BeanManagerImpl, BeanManagerMojarraImpl

public interface BeanManager

This interface defines a contract for utility methods for beans that are managed by the JSF managed-bean facility.

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.
 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.
 

Method Detail

invokePreDestroyMethods

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. 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.

isManagedBean

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.



Copyright © 2014 Liferay, Inc.. All Rights Reserved.