Package org.apache.felix.ipojo.metadata

Examples of org.apache.felix.ipojo.metadata.Element.addElement()


            ExportedService inst = (ExportedService) m_exported.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_provided.size(); i++) {
            ProvidedService inst = (ProvidedService) m_provided.get(i);
            element.addElement(inst.getElement());
        }

        // External handlers
        for (int i = 0; i < m_handlers.size(); i++) {
            HandlerConfiguration hc = (HandlerConfiguration) m_handlers.get(i);
View Full Code Here


        }

        // External handlers
        for (int i = 0; i < m_handlers.size(); i++) {
            HandlerConfiguration hc = (HandlerConfiguration) m_handlers.get(i);
            element.addElement(hc.getElement());
        }

        return element;
    }
View Full Code Here

        if (m_immediate) {
            element.addAttribute(new Attribute("immediate", "true"));
        }
        for (int i = 0; i < m_services.size(); i++) {
            Service svc = (Service) m_services.get(i);
            element.addElement(svc.getElement());
        }
        for (int i = 0; i < m_dependencies.size(); i++) {
            Dependency dep = (Dependency) m_dependencies.get(i);
            element.addElement(dep.getElement());
        }
View Full Code Here

            Service svc = (Service) m_services.get(i);
            element.addElement(svc.getElement());
        }
        for (int i = 0; i < m_dependencies.size(); i++) {
            Dependency dep = (Dependency) m_dependencies.get(i);
            element.addElement(dep.getElement());
        }
        for (int i = 0; i < m_temporals.size(); i++) {
            TemporalDependency dep = (TemporalDependency) m_temporals.get(i);
            element.addElement(dep.getElement());
        }
View Full Code Here

            Dependency dep = (Dependency) m_dependencies.get(i);
            element.addElement(dep.getElement());
        }
        for (int i = 0; i < m_temporals.size(); i++) {
            TemporalDependency dep = (TemporalDependency) m_temporals.get(i);
            element.addElement(dep.getElement());
        }
        if (m_validate != null) {
            Element callback = new Element("callback", "");
            callback.addAttribute(new Attribute("transition", "validate"));
            callback.addAttribute(new Attribute("method", m_validate));
View Full Code Here

            if (m_updated != null) {
                properties.addAttribute(new Attribute("updated", m_updated));
            }
            for (int i = 0; i < m_properties.size(); i++) {
                Property prop = (Property) m_properties.get(i);
                properties.addElement(prop.getElement());
            }
            element.addElement(properties);
        }

        // External handlers
View Full Code Here

    private void createFactory() {
        ensureValidity();
        byte[] clazz = manipulate();
        m_metadata = generateComponentMetadata();
        Element meta = m_metadata;
        meta.addElement(m_manipulation);
        try {
            if (clazz.length == 0) { // Already manipulated
                m_factory = new ComponentFactory(m_context, meta);
            } else {
                m_factory = new ComponentFactory(m_context, clazz, meta);
View Full Code Here

                Element ref = (Element) getIds().get(reference);
                if (ref == null) {
                    // Add to the root
                    m_elem.addElement(current);
                } else {
                    ref.addElement(current);
                }
            }
        }
    }
View Full Code Here

    private Element germanComponent() {
        Element component = new Element("component", null);
        component.addAttribute(new Attribute("name", "german-service"));
        component.addAttribute(new Attribute("classname", "org.apache.felix.ipojo.runtime.core.test.components.GermanHelloService"));
        component.addElement(new Element("provides", null));
        component.addElement(manipulation());
        return component;
    }

    private Element manipulation() {
View Full Code Here

    private Element germanComponent() {
        Element component = new Element("component", null);
        component.addAttribute(new Attribute("name", "german-service"));
        component.addAttribute(new Attribute("classname", "org.apache.felix.ipojo.runtime.core.test.components.GermanHelloService"));
        component.addElement(new Element("provides", null));
        component.addElement(manipulation());
        return component;
    }

    private Element manipulation() {
        Element manipulation = new Element("manipulation", null);
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.