org.apache.commons.modeler.modules
Class ModelerSource

java.lang.Object
  |
  +--org.apache.commons.modeler.modules.ModelerSource
Direct Known Subclasses:
MbeansDescriptorsDigesterSource, MbeansDescriptorsDOMSource, MbeansDescriptorsDynamicMBeanSource, MbeansDescriptorsIntrospectionSource, MbeansDescriptorsSerSource, MbeansSource

public class ModelerSource
extends Object

Source for descriptor data. More sources can be added.


Field Summary
protected  String location
           
protected  Object source
           
 
Constructor Summary
ModelerSource()
           
 
Method Summary
protected  InputStream getInputStream()
           
 List loadDescriptors(Registry registry, String location, String type, Object source)
          Load data, returns a list of items.
 void store()
           
 void updateField(javax.management.ObjectName oname, String name, Object value)
          Callback from the BaseMBean to notify that an attribute has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Object source

location

protected String location
Constructor Detail

ModelerSource

public ModelerSource()
Method Detail

loadDescriptors

public List loadDescriptors(Registry registry,
                            String location,
                            String type,
                            Object source)
                     throws Exception
Load data, returns a list of items.
Parameters:
registry -  
location -  
type -  
source - Introspected object or some other source
Throws:
Exception -  

updateField

public void updateField(javax.management.ObjectName oname,
                        String name,
                        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 InputStream getInputStream()
                              throws IOException


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.