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 import org.picocontainer.ComponentAdapter;
013 import org.picocontainer.Parameter;
014
015 /**
016 * @author Aslak Hellesøy
017 * @version $Revision: 1272 $
018 */
019 public class SynchronizedComponentAdapterFactory extends DecoratingComponentAdapterFactory {
020 public SynchronizedComponentAdapterFactory(ComponentAdapterFactory delegate) {
021 super(delegate);
022 }
023
024 public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters) {
025 return new SynchronizedComponentAdapter(super.createComponentAdapter(componentKey, componentImplementation, parameters));
026 }
027 }