KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > container > SimpleComponentAdapterFactory


1 /*****************************************************************************
2  * Copyright (C) NanoContainer 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 James Strachan and Mauro Talevi *
9  *****************************************************************************/

10 package org.exoplatform.container;
11
12 import java.io.Serializable JavaDoc;
13 import org.picocontainer.ComponentAdapter;
14 import org.picocontainer.Parameter;
15 import org.picocontainer.PicoIntrospectionException;
16 import org.picocontainer.defaults.AssignabilityRegistrationException;
17 import org.picocontainer.defaults.ComponentAdapterFactory;
18 import org.picocontainer.defaults.NotConcreteRegistrationException;
19
20 public class SimpleComponentAdapterFactory implements ComponentAdapterFactory, Serializable JavaDoc {
21   public ComponentAdapter createComponentAdapter(Object JavaDoc key, Class JavaDoc impl, Parameter[] params)
22     throws PicoIntrospectionException,
23            AssignabilityRegistrationException,
24            NotConcreteRegistrationException
25   {
26     return new SimpleComponentAdapter(key, impl);
27   }
28 }
Popular Tags