01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
19:
20: import org.apache.myfaces.config.element.ListEntries;
21:
22: /**
23: * @author Manfred Geiler (latest modification by $Author: ssilvert $)
24: * @version $Revision: 410018 $ $Date: 2006-05-29 05:59:46 +0200 (Mo, 29 Mai 2006) $
25: */
26: public interface ManagedBean {
27: // <!ELEMENT managed-bean (description*, display-name*, icon*, managed-bean-name, managed-bean-class, managed-bean-scope, (managed-property* | map-entries | list-entries))>
28:
29: public static final int INIT_MODE_NO_INIT = 0;
30: public static final int INIT_MODE_PROPERTIES = 1;
31: public static final int INIT_MODE_MAP = 2;
32: public static final int INIT_MODE_LIST = 3;
33:
34: public String getDescription();
35:
36: public String getManagedBeanName();
37:
38: public String getManagedBeanClassName();
39:
40: public Class getManagedBeanClass();
41:
42: public String getManagedBeanScope();
43:
44: public int getInitMode();
45:
46: /**
47: * @return Iterator over {@link ManagedProperty} entries
48: */
49: public Iterator getManagedProperties();
50:
51: public MapEntries getMapEntries();
52:
53: public ListEntries getListEntries();
54: }
|