Package org.apache.commons.modeler

Examples of 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


     * @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

        try {
            ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
            if (!mserver.isRegistered(objectName)) {
                descriptor = this.getClass().getResourceAsStream(
                        "mbeans-descriptors.xml");
                Registry registry = MBeanUtils.createRegistry();
                registry.loadMetadata(descriptor);
                mserver.registerMBean(getManagedBean(storeConfig), objectName);
            }
        } catch (Exception ex) {
            log.error("createMBean register MBean", ex);
View Full Code Here

                                 HttpServletRequest request,
                                 HttpServletResponse response)
        throws IOException, ServletException {

        // Create a request attribute with our collection of beans
        Registry registry = ((ApplicationServlet) getServlet()).getRegistry();
        String names[] = registry.findManagedBeans();
        Arrays.sort(names);
        ManagedBean beans[] = new ManagedBean[names.length];
        for (int i = 0; i < names.length; i++)
            beans[i] = registry.findManagedBean(names[i]);
        request.setAttribute("beans", beans);

        // Forward to the corresponding display page
        return (mapping.findForward("Dump Registry Results"));
View Full Code Here

     * @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

                                 HttpServletRequest request,
                                 HttpServletResponse response)
        throws IOException, ServletException {

        // Create a request attribute with our collection of beans
        Registry registry = ((ApplicationServlet) getServlet()).getRegistry();
        String names[] = registry.findManagedBeans();
        Arrays.sort(names);
        ManagedBean beans[] = new ManagedBean[names.length];
        for (int i = 0; i < names.length; i++)
            beans[i] = registry.findManagedBean(names[i]);
        request.setAttribute("beans", beans);

        // Forward to the corresponding display page
        return (mapping.findForward("Dump Registry Results"));
View Full Code Here

     * @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

     * @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

TOP

Related Classes of 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.