com.liferay.faces.bridge.bean.internal
Interface PreDestroyInvoker

All Known Implementing Classes:
PreDestroyInvokerImpl, PreDestroyInvokerMojarraImpl, PreDestroyInvokerWrapper

public interface PreDestroyInvoker

Author:
Neil Griffin

Method Summary
 void invokeAnnotatedMethods(Object managedBean, boolean preferPreDestroy)
          This method services as a convenience routine for invoking all methods of the specified managed-bean are marked with the PreDestroy or BridgePreDestroy annotation.
 

Method Detail

invokeAnnotatedMethods

void invokeAnnotatedMethods(Object managedBean,
                            boolean preferPreDestroy)
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.

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.


Copyright © 2015 Liferay, Inc.. All rights reserved.