MentaContainer

Rev

Rev 146 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 146 Rev 154
Line 19... Line 19...
19
 * @param <E>
19
 * @param <E>
20
 */
20
 */
21
public interface Interceptor<E> {
21
public interface Interceptor<E> {
22
       
22
       
23
        /**
23
        /**
24
         * This method will be called right before the getInstance() method return a new instance created by the factory.
-
 
-
 
24
         * This method will be called right after the getInstance() method returns a new instance from the factory.
25
         *
25
         *
26
         * @param createdObject The object that was just created.
-
 
-
 
26
         * @param createdObject The object that was just returned by the factory.
27
         */
27
         */
28
        public void onCreated(E createdObject);
28
        public void onCreated(E createdObject);
29
       
29
       
30
        /**
30
        /**
31
         * This method will be called right before the object is cleared from the scope.
-
 
-
 
31
         * This method will be called right after the object is cleared from the scope.
32
         *
32
         *
33
         * @param clearedObject The object being cleared.
-
 
-
 
33
         * @param clearedObject The object that was cleared.
34
         */
34
         */
35
        public void onCleared(E clearedObject);
35
        public void onCleared(E clearedObject);
36
}
36
}