FileDocCategorySizeDatePackage
ModelerSource.javaAPI DocApache Tomcat 6.0.142818Fri Jul 20 04:20:36 BST 2007org.apache.tomcat.util.modeler.modules

ModelerSource

public class ModelerSource extends Object
Source for descriptor data. More sources can be added.

Fields Summary
protected Object
source
protected String
location
Constructors Summary
Methods Summary
protected java.io.InputStreamgetInputStream()

        if( source instanceof URL ) {
            URL url=(URL)source;
            location=url.toString();
            return url.openStream();
        } else if( source instanceof File ) {
            location=((File)source).getAbsolutePath();
            return new FileInputStream((File)source);            
        } else if( source instanceof String) {
            location=(String)source;
            return new FileInputStream((String)source);            
        } else if( source instanceof InputStream ) {
            return (InputStream)source;
        } 
        return null;
    
public java.util.ListloadDescriptors(org.apache.tomcat.util.modeler.Registry registry, java.lang.String location, java.lang.String type, java.lang.Object source)
Load data, returns a list of items.

param
registry
param
location
param
type
param
source Introspected object or some other source
throws
Exception

        // TODO
        return null;
    
public voidstore()

        // nothing
    
public voidupdateField(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.

param
oname
param
name
param
value

        // nothing by default