KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > component > servlet > InstrumentManagerReferenceProxy


1 /*
2  * Copyright 2002-2004 The Apache Software Foundation
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12  * implied.
13  *
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.avalon.excalibur.component.servlet;
18
19 import org.apache.excalibur.instrument.InstrumentManager;
20 import org.apache.excalibur.instrument.Instrumentable;
21
22 /**
23  * Reference Proxy to an InstrumentManager
24  *
25  * @deprecated ECM is no longer supported
26  *
27  * @author <a HREF="mailto:dev@avalon.apache.org">Avalon Development Team</a>
28  * @version CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:16 $
29  * @since 4.2
30  */

31 final class InstrumentManagerReferenceProxy
32     extends AbstractReferenceProxy
33     implements InstrumentManager
34 {
35     private InstrumentManager m_instrumentManager;
36
37     /*---------------------------------------------------------------
38      * Constructors
39      *-------------------------------------------------------------*/

40     /**
41      * Create a new proxy.
42      *
43      * @param instrumentManager InstrumentManager being proxied.
44      * @param latch Latch wich will be notified when this proxy is finalized.
45      * @param name Name of the proxy.
46      */

47     InstrumentManagerReferenceProxy( InstrumentManager instrumentManager,
48                                      AbstractReferenceProxyLatch latch,
49                                      String JavaDoc name )
50     {
51         super( latch, name );
52         m_instrumentManager = instrumentManager;
53     }
54
55     /*---------------------------------------------------------------
56      * InstrumentManager Methods
57      *-------------------------------------------------------------*/

58     /**
59      * Instrumentable to be registered with the instrument manager. Should be
60      * called whenever an Instrumentable is created. The '.' character is
61      * used to denote a child Instrumentable and can be used to register the
62      * instrumentable at a specific point in an instrumentable hierarchy.
63      *
64      * @param instrumentable Instrumentable to register with the InstrumentManager.
65      * @param instrumentableName The name to use when registering the Instrumentable.
66      *
67      * @throws Exception If there were any problems registering the Instrumentable.
68      */

69     public void registerInstrumentable( Instrumentable instrumentable, String JavaDoc instrumentableName )
70         throws Exception JavaDoc
71     {
72         m_instrumentManager.registerInstrumentable( instrumentable, instrumentableName );
73     }
74 }
75
Popular Tags