Examples of GBeanInstance


Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        gbeanInstance.die();
        registry.unregister(gbeanName);
    }

    public int getGBeanState(ObjectName name) throws GBeanNotFoundException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.getState();
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.getState();
    }

    public long getGBeanStartTime(ObjectName name) throws GBeanNotFoundException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.getStartTime();
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.getStartTime();
    }

    public boolean isGBeanEnabled(ObjectName name) throws GBeanNotFoundException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.isEnabled();
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.isEnabled();
    }

    public void setGBeanEnabled(ObjectName name, boolean enabled) throws GBeanNotFoundException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        gbeanInstance.setEnabled(enabled);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        String domain = (pattern == null || pattern.isDomainPattern()) ? null : pattern.getDomain();
        Map props = pattern == null ? null : pattern.getKeyPropertyList();
        Set gbeans = registry.listGBeans(domain, props);
        Set result = new HashSet(gbeans.size());
        for (Iterator i = gbeans.iterator(); i.hasNext();) {
            GBeanInstance instance = (GBeanInstance) i.next();
            result.add(instance.getObjectNameObject());
        }
        return result;
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

    public boolean isRunning() {
        return running;
    }

    public ClassLoader getClassLoaderFor(ObjectName name) throws GBeanNotFoundException {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(createGBeanName(name));
        return gbeanInstance.getClassLoader();
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

    public ProxyManager getProxyManager() {
        return proxyManager;
    }

    public Object getAttribute(ObjectName objectName, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(objectName);
        return gbeanInstance.getAttribute(attributeName);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        GBeanInstance gbeanInstance = registry.getGBeanInstance(objectName);
        return gbeanInstance.getAttribute(attributeName);
    }

    public Object getAttribute(AbstractName abstractName, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(abstractName);
        return gbeanInstance.getAttribute(attributeName);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

    public Object getAttribute(Class type, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception {
        return getAttribute(null, type, attributeName);
    }

    public Object getAttribute(String shortName, Class type, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(shortName, type);
        return gbeanInstance.getAttribute(attributeName);
    }
View Full Code Here

Examples of org.apache.geronimo.gbean.runtime.GBeanInstance

        GBeanInstance gbeanInstance = registry.getGBeanInstance(shortName, type);
        return gbeanInstance.getAttribute(attributeName);
    }

    public void setAttribute(AbstractName abstractName, String attributeName, Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception {
        GBeanInstance gbeanInstance = registry.getGBeanInstance(abstractName);
        gbeanInstance.setAttribute(attributeName, attributeValue);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.