org.apache.tomcat.util.modeler.modules

Interface MbeansSourceMBean

public interface MbeansSourceMBean

This mbean will load an extended mlet file ( similar in syntax with jboss ). It'll keep track of all attribute changes and update the file when attributes change.
Method Summary
ListgetMBeans()
Return the list of loaded mbeans names
ObjectgetSource()
voidinit()
Call the init method on all mbeans.
voidload()
Load the mbeans from the source.
voidsave()
Save the file.
voidsetSource(Object source)
Set the source to be used to load the mbeans

Method Detail

getMBeans

public List getMBeans()
Return the list of loaded mbeans names

Returns: List of ObjectName

getSource

public Object getSource()

init

public void init()
Call the init method on all mbeans. Will call load if not done already

Throws: Exception

load

public void load()
Load the mbeans from the source. Called automatically on init()

Throws: Exception

save

public void save()
Save the file.

setSource

public void setSource(Object source)
Set the source to be used to load the mbeans

Parameters: source File or URL

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.