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     *****************************************************************************/
009    package org.picocontainer.behaviors;
010    
011    import org.picocontainer.ComponentAdapter;
012    import org.picocontainer.ComponentMonitor;
013    import org.picocontainer.LifecycleStrategy;
014    import org.picocontainer.Parameter;
015    import org.picocontainer.PicoCompositionException;
016    
017    import java.util.Map;
018    import java.util.HashMap;
019    import java.util.Properties;
020    import java.io.Serializable;
021    
022    
023    /** @author Paul Hammant */
024    public class Interception extends AbstractBehaviorFactory {
025    
026        public <T> ComponentAdapter<T> createComponentAdapter(ComponentMonitor componentMonitor,
027                                                              LifecycleStrategy lifecycleStrategy,
028                                                              Properties componentProperties,
029                                                              Object componentKey,
030                                                              Class<T> componentImplementation,
031                                                              Parameter... parameters) throws PicoCompositionException {
032            return new Intercepted(super.createComponentAdapter(componentMonitor,
033                                    lifecycleStrategy, componentProperties, componentKey,
034                                    componentImplementation, parameters));
035        }
036    
037    
038    
039    }