MentaContainer

Compare Revisions

Ignore whitespace Rev 153 → Rev 154

/trunk/src/main/java/org/mentacontainer/Interceptor.java
21,16 → 21,16
public interface Interceptor<E> {
/**
* This method will be called right before the getInstance() method return a new instance created by the factory.
* This method will be called right after the getInstance() method returns a new instance from the factory.
*
* @param createdObject The object that was just created.
* @param createdObject The object that was just returned by the factory.
*/
public void onCreated(E createdObject);
/**
* This method will be called right before the object is cleared from the scope.
* This method will be called right after the object is cleared from the scope.
*
* @param clearedObject The object being cleared.
* @param clearedObject The object that was cleared.
*/
public void onCleared(E clearedObject);
}