@Deprecated public class MbeansSource extends ModelerSource implements MbeansSourceMBean
location, sm, source
Constructor and Description |
---|
MbeansSource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
|
void |
execute()
Deprecated.
|
String |
getLocation()
Deprecated.
|
List<ObjectName> |
getMBeans()
Deprecated.
Return the list of mbeans created by this source.
|
Object |
getSource()
Deprecated.
|
void |
init()
Deprecated.
Call the init method on all mbeans.
|
void |
load()
Deprecated.
Load the mbeans from the source.
|
List<ObjectName> |
loadDescriptors(Registry registry,
String type,
Object source)
Deprecated.
Load data, returns a list of items.
|
void |
save()
Deprecated.
Store the mbeans.
|
void |
setLocation(String loc)
Deprecated.
|
void |
setRegistry(Registry reg)
Deprecated.
|
void |
setSource(Object source)
Deprecated.
Set the source to be used to load the mbeans
|
void |
setType(String type)
Deprecated.
Used if a single component is loaded
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
void |
updateField(ObjectName oname,
String name,
Object value)
Deprecated.
Callback from the BaseMBean to notify that an attribute has changed.
|
getInputStream, loadDescriptors, store
public void setRegistry(Registry reg)
public void setLocation(String loc)
public void setType(String type)
type
- public void setSource(Object source)
MbeansSourceMBean
setSource
in interface MbeansSourceMBean
source
- File or URLpublic Object getSource()
getSource
in interface MbeansSourceMBean
public String getLocation()
public List<ObjectName> getMBeans()
getMBeans
in interface MbeansSourceMBean
public List<ObjectName> loadDescriptors(Registry registry, String type, Object source) throws Exception
ModelerSource
loadDescriptors
in class ModelerSource
registry
- The registrytype
- The bean registry typesource
- Introspected object or some other sourceException
- Error loading descriptorspublic void init() throws Exception
MbeansSourceMBean
init
in interface MbeansSourceMBean
Exception
public void load() throws Exception
MbeansSourceMBean
load
in interface MbeansSourceMBean
Exception
public void updateField(ObjectName oname, String name, Object value)
ModelerSource
updateField
in class ModelerSource
public void save()
save
in interface MbeansSourceMBean
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.