KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > api > factory > GenericFactory


1 /***
2  * Fractal API
3  * Copyright (C) 2001-2002 France Telecom, INRIA
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Contact: fractal@objectweb.org
20  *
21  * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet,
22  * Philippe Merle, Jean-Bernard Stefani.
23  */

24
25 package org.objectweb.fractal.api.factory;
26
27 import org.objectweb.fractal.api.Component;
28 import org.objectweb.fractal.api.Type;
29
30 /**
31  * A component interface to create arbitrary components.
32  */

33
34 public interface GenericFactory {
35
36   /**
37    * Creates a component.
38    *
39    * @param type an arbitrary component type.
40    * @param controllerDesc a description of the controller part of the
41    * component to be created. This description is implementation specific.
42    * If it is <tt>null</tt> then a "default" controller part will be used.
43    * @param contentDesc a description of the content part of the
44    * component to be created. This description is implementation specific.
45    * It may be <tt>null</tt> to create component with an empty initial
46    * content. It may also be, in Java, the fully qualified name of a Java
47    * class, to create primitive components.
48    * @return the {@link Component} interface of the created component.
49    * @throws InstantiationException if the component cannot be created.
50    */

51
52   Component newFcInstance (Type type, Object JavaDoc controllerDesc, Object JavaDoc contentDesc)
53     throws InstantiationException JavaDoc;
54 }
55
Popular Tags