KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.List JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import org.jboss.beans.info.spi.PropertyInfo;
28 import org.jboss.beans.info.spi.BeanInfo;
29 import org.jboss.beans.metadata.spi.ConstructorMetaData;
30 import org.jboss.beans.metadata.spi.ParameterMetaData;
31 import org.jboss.beans.metadata.spi.PropertyMetaData;
32 import org.jboss.beans.metadata.spi.BeanMetaData;
33 import org.jboss.beans.metadata.spi.ValueMetaData;
34 import org.jboss.joinpoint.spi.Joinpoint;
35 import org.jboss.joinpoint.spi.MethodJoinpoint;
36 import org.jboss.joinpoint.spi.TargettedJoinpoint;
37 import org.jboss.kernel.spi.KernelObject;
38 import org.jboss.reflect.spi.ClassInfo;
39 import org.jboss.reflect.spi.TypeInfo;
40
41 /**
42  * A configurator.<p>
43  *
44  * The configurator is a utility class used by the controller
45  * to create and configure beans.
46  *
47  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
48  * @version $Revision: 45764 $
49  */

50 public interface KernelConfigurator extends KernelObject
51 {
52    /**
53     * Get the BeanInfo
54     *
55     * @param className the class name
56     * @param cl the classloader
57     * @return the bean info
58     * @throws Throwable for any error
59     */

60    BeanInfo getBeanInfo(String JavaDoc className, ClassLoader JavaDoc cl) throws Throwable JavaDoc;
61    
62    /**
63     * Get the BeanInfo
64     *
65     * @param clazz the class
66     * @return the bean info
67     * @throws Throwable for any error
68     */

69    BeanInfo getBeanInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
70    
71    /**
72     * Get the BeanInfo
73     *
74     * @param type the type info
75     * @return the bean info
76     * @throws Throwable for any error
77     */

78    BeanInfo getBeanInfo(TypeInfo type) throws Throwable JavaDoc;
79    
80    /**
81     * Get the BeanInfo for some metadata
82     *
83     * @param metaData the metadata
84     * @return the bean info
85     * @throws Throwable for any error
86     */

87    BeanInfo getBeanInfo(BeanMetaData metaData) throws Throwable JavaDoc;
88    
89    /**
90     * Get the class info for a class
91     *
92     * @param className the class name
93     * @param cl the classloader
94     * @return the class info
95     * @throws Throwable for any error
96     */

97    ClassInfo getClassInfo(String JavaDoc className, ClassLoader JavaDoc cl) throws Throwable JavaDoc;
98    
99    /**
100     * Get the class info for a class
101     *
102     * @param clazz the class
103     * @return the class info
104     * @throws Throwable for any error
105     */

106    ClassInfo getClassInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
107    
108    /**
109     * Get a constructor join point
110     *
111     * @param info the bean info
112     * @return the join point
113     * @throws Throwable for any error
114     */

115    Joinpoint getConstructorJoinPoint(BeanInfo info) throws Throwable JavaDoc;
116    
117    /**
118     * Get a constructor join point
119     *
120     * @param metaData the bean metadata
121     * @return the join point
122     * @throws Throwable for any error
123     */

124    Joinpoint getConstructorJoinPoint(BeanMetaData metaData) throws Throwable JavaDoc;
125    
126    /**
127     * Get a constructor join point
128     *
129     * @param info the bean info
130     * @param metaData the constructor metadata
131     * @param beanMetaData
132     * @return the join point
133     * @throws Throwable for any error
134     */

135    Joinpoint getConstructorJoinPoint(BeanInfo info, ConstructorMetaData metaData, BeanMetaData beanMetaData) throws Throwable JavaDoc;
136
137    /**
138     * Get property getter join point
139     *
140     * @param info the bean info
141     * @param property the property name
142     * @return the join point
143     * @throws Throwable for any error
144     */

145    TargettedJoinpoint getPropertyGetterJoinPoint(BeanInfo info, String JavaDoc property) throws Throwable JavaDoc;
146
147    /**
148     * Get property setter join points
149     *
150     * @param info the bean info
151     * @param metaData the bean metadata
152     * @return the join points
153     * @throws Throwable for any error
154     */

155    Set JavaDoc<TargettedJoinpoint> getPropertySetterJoinPoints(BeanInfo info, BeanMetaData metaData) throws Throwable JavaDoc;
156
157    /**
158     * Get property setter join point
159     *
160     * @param info the bean info
161     * @param cl the classloader
162     * @param metaData the property metadata
163     * @return the join point
164     * @throws Throwable for any error
165     */

166    TargettedJoinpoint getPropertySetterJoinPoint(BeanInfo info, ClassLoader JavaDoc cl, PropertyMetaData metaData) throws Throwable JavaDoc;
167
168    /**
169     * Get property setter join point
170     *
171     * @param info the bean info
172     * @param property the property name
173     * @param cl the classloader
174     * @param vmd the value metadata
175     * @return the join point
176     * @throws Throwable for any error
177     */

178    TargettedJoinpoint getPropertySetterJoinPoint(BeanInfo info, String JavaDoc property, ClassLoader JavaDoc cl, ValueMetaData vmd) throws Throwable JavaDoc;
179    
180    /**
181     * Get property setter join point
182     *
183     * @param info the property info
184     * @param cl the classloader
185     * @param metaData the property metadata
186     * @return the join point
187     * @throws Throwable for any error
188     */

189    TargettedJoinpoint getPropertySetterJoinPoint(PropertyInfo info, ClassLoader JavaDoc cl, PropertyMetaData metaData) throws Throwable JavaDoc;
190
191    /**
192     * Get property nuller join points
193     *
194     * @param info the bean info
195     * @param metaData the bean metadata
196     * @return the join points
197     * @throws Throwable for any error
198     */

199    Set JavaDoc<TargettedJoinpoint> getPropertyNullerJoinPoints(BeanInfo info, BeanMetaData metaData) throws Throwable JavaDoc;
200
201    /**
202     * Get property nuller join point
203     *
204     * @param info the bean info
205     * @param metaData the property metadata
206     * @return the join point
207     * @throws Throwable for any error
208     */

209    TargettedJoinpoint getPropertyNullerJoinPoint(BeanInfo info, PropertyMetaData metaData) throws Throwable JavaDoc;
210
211    /**
212     * Get property nuller join point
213     *
214     * @param info the property info
215     * @param metaData the property metadata
216     * @return the join point
217     * @throws Throwable for any error
218     */

219    TargettedJoinpoint getPropertyNullerJoinPoint(PropertyInfo info, PropertyMetaData metaData) throws Throwable JavaDoc;
220    
221    /**
222     * Get a method joinpoint
223     *
224     * @param info the bean info
225     * @param cl the classloader
226     * @param name the method name
227     * @param parameters the parameter metadata
228     * @param isStatic whether the method is static
229     * @param isPublic whether the method is public
230     * @return the method join point
231     * @throws Throwable for any error
232     */

233    MethodJoinpoint getMethodJoinPoint(BeanInfo info, ClassLoader JavaDoc cl, String JavaDoc name, List JavaDoc<ParameterMetaData> parameters, boolean isStatic, boolean isPublic) throws Throwable JavaDoc;
234 }
235
Popular Tags