KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > beans > metadata > spi > BeanMetaData


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.beans.metadata.spi;
23
24 import java.util.List JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import org.jboss.dependency.spi.ControllerMode;
28
29 /**
30  * Metadata about a bean.
31  *
32  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
33  * @version $Revision: 56471 $
34  */

35 public interface BeanMetaData extends FeatureMetaData, ValueMetaData
36 {
37    /**
38     * Get the bean.
39     *
40     * @return the bean.
41     */

42    String JavaDoc getBean();
43
44    /**
45     * Get the name
46     *
47     * @return the name
48     */

49    String JavaDoc getName();
50    
51    /**
52     * Set the name
53     *
54     * @param name the name
55     */

56    void setName(String JavaDoc name);
57
58    /**
59     * Get the mode
60     *
61     * @return the mode
62     */

63    ControllerMode getMode();
64    
65    /**
66     * Set the name
67     *
68     * @param mode the mode
69     */

70    void setMode(ControllerMode mode);
71    
72    /**
73     * Get the properties.
74     *
75     * @return List<PropertyMetaData>.
76     */

77    Set JavaDoc<PropertyMetaData> getProperties();
78
79    /**
80     * Get the bean ClassLoader
81     *
82     * @return the ClassLoader metadata
83     */

84    ClassLoaderMetaData getClassLoader();
85
86    /**
87     * Set the bean ClassLoader
88     *
89     * @param classLoader the ClassLoader metadata
90     */

91    void setClassLoader(ClassLoaderMetaData classLoader);
92
93    /**
94     * Get the constructor
95     *
96     * @return the constructor metadata
97     */

98    ConstructorMetaData getConstructor();
99
100    /**
101     * Get the create lifecycle
102     *
103     * @return the create lifecycle
104     */

105    LifecycleMetaData getCreate();
106
107    /**
108     * Get the start lifecycle
109     *
110     * @return the start lifecycle
111     */

112    LifecycleMetaData getStart();
113
114    /**
115     * Get the stop lifecycle
116     *
117     * @return the stop lifecycle
118     */

119    LifecycleMetaData getStop();
120
121    /**
122     * Get the destroy lifecycle
123     *
124     * @return the destroy lifecycle
125     */

126    LifecycleMetaData getDestroy();
127    
128    /**
129     * Get what this bean demands.
130     *
131     * @return Set<DemandMetaData>
132     */

133    Set JavaDoc<DemandMetaData> getDemands();
134
135    /**
136     * Get what this bean supplies.
137     *
138     * @return Set<SupplyMetaData>
139     */

140    Set JavaDoc<SupplyMetaData> getSupplies();
141    
142    /**
143     * Get what this bean depends.
144     *
145     * @return Set<DependencyMetaData>
146     */

147    Set JavaDoc<DependencyMetaData> getDepends();
148
149    /**
150     * Get the installation oeprations.
151     *
152     * @return List<InstallMetaData>
153     */

154    List JavaDoc<InstallMetaData> getInstalls();
155
156    /**
157     * Get the uninstallation oeprations.
158     *
159     * @return List<InstallMetaData>
160     */

161    List JavaDoc<InstallMetaData> getUninstalls();
162 }
163
Popular Tags