KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > config > spi > Configuration


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2006, 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.config.spi;
23
24 import org.jboss.beans.info.spi.BeanInfo;
25 import org.jboss.classadapter.spi.DependencyBuilder;
26 import org.jboss.joinpoint.spi.JoinpointFactoryBuilder;
27 import org.jboss.reflect.spi.ClassInfo;
28 import org.jboss.reflect.spi.TypeInfo;
29 import org.jboss.reflect.spi.TypeInfoFactory;
30 import org.jboss.repository.spi.MetaDataContextFactory;
31
32 /**
33  * Configuration.<p>
34  *
35  * Provides configuration options.
36  *
37  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
38  * @version $Revision: 44529 $
39  */

40 public interface Configuration
41 {
42    /**
43     * Get the bean info
44     *
45     * @param className the class name
46     * @param cl the classloader
47     * @return the bean info
48     * @throws Throwable for any error
49     */

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

59    BeanInfo getBeanInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
60
61    /**
62     * Get the bean info
63     *
64     * @param type the type info
65     * @return the bean info
66     * @throws Throwable for any error
67     */

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

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

87    ClassInfo getClassInfo(Class JavaDoc clazz) throws Throwable JavaDoc;
88
89    /**
90     * Get the type info factory
91     *
92     * @return the TypeInfoFactory
93     */

94    TypeInfoFactory getTypeInfoFactory();
95
96    /**
97     * Get the dependency builder
98     *
99     * @return the DependencyFactoryBuilder
100     */

101    DependencyBuilder getDependencyBuilder();
102
103    /**
104     * Get the joinpoint factory builder
105     *
106     * @return the JoinpointFactoryBuilder
107     */

108    JoinpointFactoryBuilder getJoinpointFactoryBuilder();
109
110    /**
111     * Get the metadata context factory
112     *
113     * @return the MetaDataContextFactory
114     */

115    MetaDataContextFactory getMetaDataContextFactory();
116 }
117
Popular Tags