Class ModelerSource
- java.lang.Object
-
- org.apache.commons.modeler.modules.ModelerSource
-
- Direct Known Subclasses:
MbeansDescriptorsDigesterSource,MbeansDescriptorsDOMSource,MbeansDescriptorsDynamicMBeanSource,MbeansDescriptorsIntrospectionSource,MbeansDescriptorsSerSource,MbeansSource
public class ModelerSource extends java.lang.ObjectSource for descriptor data. More sources can be added.
-
-
Constructor Summary
Constructors Constructor Description ModelerSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.InputStreamgetInputStream()java.util.ListloadDescriptors(Registry registry, java.lang.String location, java.lang.String type, java.lang.Object source)Load data, returns a list of items.voidstore()voidupdateField(javax.management.ObjectName oname, java.lang.String name, java.lang.Object value)Callback from the BaseMBean to notify that an attribute has changed.
-
-
-
Method Detail
-
loadDescriptors
public java.util.List loadDescriptors(Registry registry, java.lang.String location, java.lang.String type, java.lang.Object source) throws java.lang.Exception
Load data, returns a list of items.- Parameters:
registry-location-type-source- Introspected object or some other source- Throws:
java.lang.Exception
-
updateField
public void updateField(javax.management.ObjectName oname, java.lang.String name, java.lang.Object value)Callback from the BaseMBean to notify that an attribute has changed. Can be used to implement persistence.- Parameters:
oname-name-value-
-
store
public void store()
-
getInputStream
protected java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
-