KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > defaults > DecoratingComponentAdapterFactory


1 /*****************************************************************************
2  * Copyright (C) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Original code by *
9  *****************************************************************************/

10 package org.picocontainer.defaults;
11
12 import org.picocontainer.ComponentAdapter;
13 import org.picocontainer.Parameter;
14 import org.picocontainer.PicoIntrospectionException;
15
16 import java.io.Serializable JavaDoc;
17
18 public class DecoratingComponentAdapterFactory implements ComponentAdapterFactory, Serializable JavaDoc {
19     private ComponentAdapterFactory delegate;
20
21     public DecoratingComponentAdapterFactory(ComponentAdapterFactory delegate) {
22         this.delegate = delegate;
23     }
24
25     public ComponentAdapter createComponentAdapter(Object JavaDoc componentKey,
26                                                    Class JavaDoc componentImplementation,
27                                                    Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException {
28         return delegate.createComponentAdapter(componentKey, componentImplementation, parameters);
29     }
30 }
31
Popular Tags