KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tomcat > util > modeler > modules > MbeansSourceMBean


1 package org.apache.tomcat.util.modeler.modules;
2
3 import java.util.List JavaDoc;
4
5
6 /**
7  * This mbean will load an extended mlet file ( similar in syntax with jboss ).
8  * It'll keep track of all attribute changes and update the file when attributes
9  * change.
10  */

11 public interface MbeansSourceMBean
12 {
13     /** Set the source to be used to load the mbeans
14      *
15      * @param source File or URL
16      */

17     public void setSource( Object JavaDoc source );
18     
19     public Object JavaDoc getSource();
20     
21     /** Return the list of loaded mbeans names
22      *
23      * @return List of ObjectName
24      */

25     public List JavaDoc getMBeans();
26
27     /** Load the mbeans from the source. Called automatically on init()
28      *
29      * @throws Exception
30      */

31     public void load() throws Exception JavaDoc;
32     
33     /** Call the init method on all mbeans. Will call load if not done already
34      *
35      * @throws Exception
36      */

37     public void init() throws Exception JavaDoc;
38
39     /** Save the file.
40      */

41     public void save();
42 }
43
Popular Tags