Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container
Interface DestructionCallback<T>


public interface DestructionCallback<T>

A destruction callback is used to implement a set of tasks to be performed on a bean prior to it being destroyed (or taken out of service) by the bean manager. This interface is not designed to be directly used. Its implementations are usually provided by Errai's code generators and are used to orchestrate tasks such as PreDestroy for beans. It is also used to implement implicit garbage collection tasks, such as the de-registering of listeners and resources associated with the bean.

Author:
Mike Brock

Method Summary
 void destroy(T bean)
          Called to perform the destruction task against the specified bean.
 

Method Detail

destroy

void destroy(T bean)
Called to perform the destruction task against the specified bean.

Parameters:
t - the bean instance.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.