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    import org.picocontainer.PicoIntrospectionException;
015    
016    public class DecoratingComponentAdapterFactory extends MonitoringComponentAdapterFactory {
017        private ComponentAdapterFactory delegate;
018    
019        public DecoratingComponentAdapterFactory(ComponentAdapterFactory delegate) {
020            this.delegate = delegate;
021        }
022    
023        public ComponentAdapter createComponentAdapter(Object componentKey,
024                                                       Class componentImplementation,
025                                                       Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException {
026            return delegate.createComponentAdapter(componentKey, componentImplementation, parameters);
027        }
028    }