KickJava   Java API By Example, From Geeks To Geeks.

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


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 *
9  *****************************************************************************/

10 package org.picocontainer.defaults;
11
12
13 import org.picocontainer.ComponentAdapter;
14 import org.picocontainer.PicoContainer;
15 import org.picocontainer.PicoInitializationException;
16 import org.picocontainer.PicoIntrospectionException;
17
18 /**
19  * @author Aslak Hellesøy
20  * @author Manish Shah
21  * @version $Revision: 1600 $
22  */

23 public class SynchronizedComponentAdapter extends DecoratingComponentAdapter {
24     public SynchronizedComponentAdapter(ComponentAdapter delegate) {
25         super(delegate);
26     }
27
28     public synchronized Object JavaDoc getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException {
29         return super.getComponentInstance(container);
30     }
31 }
32
Popular Tags