Package com.sun.org.apache.commons.modeler

Examples of com.sun.org.apache.commons.modeler.Registry


     * @exception Exception if an MBean cannot be created or registered
     */
    public String [] getValves()
        throws Exception {

        Registry registry = MBeanUtils.createRegistry();
        StandardHost host = (StandardHost) this.resource;
        String mname = MBeanUtils.createManagedName(host);
        ManagedBean managed = registry.findManagedBean(mname);
        String domain = null;
        if (managed != null) {
            domain = managed.getDomain();
        }
        if (domain == null)
View Full Code Here


        }
        this.regFile = regFile;
        this.out = out;
        this.pkgName = DEFAULT_PACKAGE_NAME;
        this.className = DEFAULT_CLASS_NAME;
        this.reg = new Registry();
        //reg.loadRegistry(new BufferedInputStream(new FileInputStream(regFile)));
        final InputStream stream = new BufferedInputStream(new FileInputStream(regFile));
        reg.loadDescriptors("MbeansDescriptorsDOMSource", stream, null);
  }
View Full Code Here

TOP

Related Classes of com.sun.org.apache.commons.modeler.Registry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.