KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > defaults > ComponentMonitor


1 /*****************************************************************************
2  * Copyright (C) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by Paul Hammant & Obie Fernandez & Aslak *
9  *****************************************************************************/

10
11 package org.picocontainer.defaults;
12
13 import java.lang.reflect.Constructor JavaDoc;
14 import java.lang.reflect.Method JavaDoc;
15
16 /**
17  * @author Paul Hammant
18  * @author Obie Fernandez
19  * @author Aslak Hellesøy
20  * @version $Revision: 1840 $
21  */

22 public interface ComponentMonitor {
23
24     void instantiating(Constructor JavaDoc constructor);
25
26     void instantiated(Constructor JavaDoc constructor, long beforeTime, long duration);
27
28     void instantiationFailed(Constructor JavaDoc constructor, Exception JavaDoc e);
29
30     void invoking(Method JavaDoc method, Object JavaDoc instance);
31
32     void invoked(Method JavaDoc method, Object JavaDoc instance, long duration);
33
34     void invocationFailed(Method JavaDoc method, Object JavaDoc instance, Exception JavaDoc e);
35
36 }
37
Popular Tags