1 package org.apache.commons.modeler.modules;
2
3 import java.util.List;
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 source );
18
19 public Object getSource();
20
21 /*** Return the list of loaded mbeans names
22 *
23 * @return List of ObjectName
24 */
25 public List getMBeans();
26
27 /*** Load the mbeans from the source. Called automatically on init()
28 *
29 * @throws Exception
30 */
31 public void load() throws Exception;
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;
38
39 /*** Save the file.
40 */
41 public void save();
42 }