KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > kernel > spi > config > KernelConfig


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.kernel.spi.config;
23
24 import org.jboss.beans.info.spi.BeanInfo;
25 import org.jboss.kernel.spi.KernelObject;
26 import org.jboss.kernel.spi.bootstrap.KernelInitializer;
27 import org.jboss.kernel.spi.dependency.KernelController;
28 import org.jboss.kernel.spi.event.KernelEventManager;
29 import org.jboss.kernel.spi.metadata.KernelMetaDataRepository;
30 import org.jboss.kernel.spi.registry.KernelBus;
31 import org.jboss.kernel.spi.registry.KernelRegistry;
32 import org.jboss.reflect.spi.ClassInfo;
33 import org.jboss.reflect.spi.TypeInfo;
34
35 /**
36  * Kernel Configuration.<p>
37  *
38  * Provides kernel configuration options.
39  *
40  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
41  * @author <a HREF="mailto:les.hazlewood@jboss.org">Les A. Hazlewood</a>
42  * @version $Revision: 46188 $
43  */

44 public interface KernelConfig extends KernelObject
45 {
46    /**
47     * Get the bean info
48     *
49     * @param className the class name
50     * @param cl the classloader
51     * @return the bean info
52     * @throws Throwable for any error
53     */

54    BeanInfo getBeanInfo(String JavaDoc className, ClassLoader JavaDoc cl) throws Throwable JavaDoc;
55
56    /**
57     * Get the bean info
58     *
59     * @param clazz the class
60     * @return the bean info
61     * @throws Throwable for any error
62     */

63    BeanInfo getBeanInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
64
65    /**
66     * Get the bean info
67     *
68     * @param type the type info
69     * @return the bean info
70     * @throws Throwable for any error
71     */

72    BeanInfo getBeanInfo(TypeInfo type) throws Throwable JavaDoc;
73    
74    /**
75     * Get the class info for a class
76     *
77     * @param className the class name
78     * @param cl the classloader
79     * @return the class info
80     * @throws Throwable for any error
81     */

82    ClassInfo getClassInfo(String JavaDoc className, ClassLoader JavaDoc cl) throws Throwable JavaDoc;
83    
84    /**
85     * Get the class info for a class
86     *
87     * @param clazz the class
88     * @return the class info
89     * @throws Throwable for any error
90     */

91    ClassInfo getClassInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
92
93    /**
94     * Create a kernel bus
95     *
96     * @return the kernel bus
97     * @throws Throwable for any error
98     */

99    KernelBus createKernelBus() throws Throwable JavaDoc;
100
101    /**
102     * Create a kernel configurator
103     *
104     * @return the kernel configurator
105     * @throws Throwable for any error
106     */

107    KernelConfigurator createKernelConfigurator() throws Throwable JavaDoc;
108
109    /**
110     * Create a kernel controller
111     *
112     * @return the kernel controller
113     * @throws Throwable for any error
114     */

115    KernelController createKernelController() throws Throwable JavaDoc;
116
117    /**
118     * Create a kernel event manager
119     *
120     * @return the kernel event manager
121     * @throws Throwable for any error
122     */

123    KernelEventManager createKernelEventManager() throws Throwable JavaDoc;
124
125    /**
126     * Create a kernel initializer
127     *
128     * @return the kernel initializer
129     * @throws Throwable for any error
130     */

131    KernelInitializer createKernelInitializer() throws Throwable JavaDoc;
132
133    /**
134     * Create a kernel registry
135     *
136     * @return the kernel registry
137     * @throws Throwable for any error
138     */

139    KernelRegistry createKernelRegistry() throws Throwable JavaDoc;
140
141    /**
142     * Create a meta data repository
143     *
144     * @return the meta data repository
145     * @throws Throwable for any error
146     */

147    KernelMetaDataRepository createKernelMetaDataRepository() throws Throwable JavaDoc;
148 }
149
Popular Tags