Package org.apache.felix.ipojo.composite.instance.InstanceHandler

Examples of org.apache.felix.ipojo.composite.instance.InstanceHandler.ManagedConfiguration


     * @see org.apache.felix.ipojo.architecture.HandlerDescription#getHandlerInfo()
     */
    public Element getHandlerInfo() {
        Element instances = super.getHandlerInfo();
        for (int i = 0; i < m_configurations.length; i++) {
            ManagedConfiguration inst = m_configurations[i];
            Element instance = new Element("Instance", "");
            if (inst.getInstance() == null) {
                instance.addAttribute(new Attribute("Factory", inst.getConfiguration().get("component").toString()));
                instance.addAttribute(new Attribute("State", "Not Available"));
            } else {
                instance.addAttribute(new Attribute("Factory", inst.getFactory()));
                instance.addAttribute(new Attribute("Name", inst.getInstance().getInstanceName()));
                String state = null;
                switch(inst.getInstance().getState()) {
                    case ComponentInstance.DISPOSED :
                        state = "disposed"; break;
                    case ComponentInstance.STOPPED :
                        state = "stopped"; break;
                    case ComponentInstance.VALID :
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.composite.instance.InstanceHandler.ManagedConfiguration

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.