001 /***************************************************************************** 002 * Copyright (C) PicoContainer Organization. All rights reserved. * 003 * ------------------------------------------------------------------------- * 004 * The software in this package is published under the terms of the BSD * 005 * style license a copy of which has been included with this distribution in * 006 * the LICENSE.txt file. * 007 * * 008 * Original code by * 009 *****************************************************************************/ 010 package org.picocontainer.defaults; 011 012 013 import org.picocontainer.ComponentAdapter; 014 import org.picocontainer.PicoContainer; 015 import org.picocontainer.PicoInitializationException; 016 import org.picocontainer.PicoIntrospectionException; 017 018 /** 019 * @author Aslak Hellesøy 020 * @author Manish Shah 021 * @version $Revision: 1600 $ 022 */ 023 public class SynchronizedComponentAdapter extends DecoratingComponentAdapter { 024 public SynchronizedComponentAdapter(ComponentAdapter delegate) { 025 super(delegate); 026 } 027 028 public synchronized Object getComponentInstance(PicoContainer container) throws PicoInitializationException, PicoIntrospectionException { 029 return super.getComponentInstance(container); 030 } 031 }