01: /*****************************************************************************
02: * Copyright (c) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: *****************************************************************************/package org.picocontainer.behaviors;
09:
10: import org.picocontainer.ComponentAdapter;
11: import org.picocontainer.ComponentMonitor;
12: import org.picocontainer.LifecycleStrategy;
13: import org.picocontainer.Parameter;
14: import org.picocontainer.PicoCompositionException;
15:
16: import java.util.Map;
17: import java.util.HashMap;
18: import java.util.Properties;
19: import java.io.Serializable;
20:
21: /** @author Paul Hammant */
22: public class Intercepting extends AbstractBehaviorFactory {
23:
24: public <T> ComponentAdapter<T> createComponentAdapter(
25: ComponentMonitor componentMonitor,
26: LifecycleStrategy lifecycleStrategy,
27: Properties componentProperties, Object componentKey,
28: Class<T> componentImplementation, Parameter... parameters)
29: throws PicoCompositionException {
30: return new Intercepted(super.createComponentAdapter(
31: componentMonitor, lifecycleStrategy,
32: componentProperties, componentKey,
33: componentImplementation, parameters));
34: }
35: }
|