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.html file. *
7 * *
8 * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
9 *****************************************************************************/
10
11 package picocontainer;
12
13 import java.lang.reflect.Constructor;
14 import java.lang.reflect.InvocationTargetException;
15
16 public interface ComponentFactory {
17
18 /***
19 * Create a component. Used by the internals of applicable PicoContainers
20 * to instantiate a component.
21 * @param compType The component type to instantiate
22 * @param constructor The constructor to use to create the component.
23 * @param args The arguments to pass in to the constructor
24 * @return The component
25 * @throws PicoInvocationTargetInitailizationException If a problem creating the component.
26 */
27 Object createComponent(Class compType, Constructor constructor, Object[] args) throws PicoInvocationTargetInitailizationException;
28
29 }
This page was automatically generated by Maven