KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > config > element > ManagedBean


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.config.element;
17
18 import java.util.Iterator JavaDoc;
19
20 import org.apache.myfaces.config.element.ListEntries;
21
22 /**
23  * @author Manfred Geiler (latest modification by $Author: matze $)
24  * @version $Revision: 1.2 $ $Date: 2004/10/13 11:50:59 $
25  * $Log: ManagedBean.java,v $
26  * Revision 1.2 2004/10/13 11:50:59 matze
27  * renamed packages to org.apache
28  *
29  * Revision 1.1 2004/07/07 00:25:04 o_rossmueller
30  * tidy up config/confignew package (moved confignew classes to package config)
31  *
32  * Revision 1.3 2004/07/01 22:05:04 mwessendorf
33  * ASF switch
34  *
35  * Revision 1.2 2004/06/16 23:02:22 o_rossmueller
36  * merged confignew_branch
37  *
38  * Revision 1.1.2.1 2004/06/16 02:07:22 o_rossmueller
39  * get navigation rules from RuntimeConfig
40  * refactored all remaining usages of MyFacesFactoryFinder to use RuntimeConfig
41  *
42  * Revision 1.1 2004/05/17 14:28:26 manolito
43  * new configuration concept
44  *
45  */

46 public interface ManagedBean
47 {
48     // <!ELEMENT managed-bean (description*, display-name*, icon*, managed-bean-name, managed-bean-class, managed-bean-scope, (managed-property* | map-entries | list-entries))>
49

50     public static final int INIT_MODE_NO_INIT = 0;
51     public static final int INIT_MODE_PROPERTIES = 1;
52     public static final int INIT_MODE_MAP = 2;
53     public static final int INIT_MODE_LIST = 3;
54
55     public String JavaDoc getManagedBeanName();
56     public String JavaDoc getManagedBeanClassName();
57     public Class JavaDoc getManagedBeanClass();
58     public String JavaDoc getManagedBeanScope();
59
60     public int getInitMode();
61
62     /**
63      * @return Iterator over {@link ManagedProperty} entries
64      */

65     public Iterator JavaDoc getManagedProperties();
66
67     public MapEntries getMapEntries();
68
69     public ListEntries getListEntries();
70 }
71
Popular Tags