Package org.apache.felix.ipojo.metadata

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


        }
        for (Dependency dep : m_dependencies) {
            element.addElement(dep.getElement());
        }
        for (TemporalDependency dep : m_temporals) {
            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 (Property prop : m_properties) {
                properties.addElement(prop.getElement());
            }
            element.addElement(properties);
        }

        // External handlers
View Full Code Here

    private void createFactory() {
        ensureValidity();
        byte[] clazz = manipulate();

        Element meta = generateComponentMetadata();
        meta.addElement(m_manipulation);
        try {
            if (m_alreadyManipulated) { // Already manipulated
                m_factory = new ComponentFactory(m_context, meta);
            } else {
                m_factory = new ComponentFactory(m_context, clazz, meta);
View Full Code Here

        dep.addAttribute(new Attribute("action", "implement"));
      
        dep.addAttribute(new Attribute("specification", m_specification));

        for (int i = 0; i < m_delegation.size(); i++) {
            dep.addElement((Element) m_delegation.get(i));
        }
       
        return dep;
    }
   
View Full Code Here

     * Overridden to add created objects.
     * @return the instance description
     */
    public Element getDescription() {
        Element elem = super.getDescription();
        elem.addElement(getInternalServices());

        InstanceDescription[] descs = getContainedInstances();
        if (descs.length > 0) {
            Element inst = new Element("ContainedInstances", "");
            for (int i = 0; i < descs.length; i++) {
View Full Code Here

        InstanceDescription[] descs = getContainedInstances();
        if (descs.length > 0) {
            Element inst = new Element("ContainedInstances", "");
            for (int i = 0; i < descs.length; i++) {
                inst.addElement(descs[i].getDescription());
            }
            elem.addElement(inst);
        }
       
        return elem;
View Full Code Here

        if (! m_public) {
            element.addAttribute(new Attribute("public", "false"));
        }
        for (int i = 0; i < m_contained.size(); i++) {
            Instance inst = (Instance) m_contained.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_imported.size(); i++) {
            ImportedService inst = (ImportedService) m_imported.get(i);
            element.addElement(inst.getElement());
        }
View Full Code Here

            Instance inst = (Instance) m_contained.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_imported.size(); i++) {
            ImportedService inst = (ImportedService) m_imported.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_instantiated.size(); i++) {
            InstantiatedService inst = (InstantiatedService) m_instantiated.get(i);
            element.addElement(inst.getElement());
        }
View Full Code Here

            ImportedService inst = (ImportedService) m_imported.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_instantiated.size(); i++) {
            InstantiatedService inst = (InstantiatedService) m_instantiated.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_exported.size(); i++) {
            ExportedService inst = (ExportedService) m_exported.get(i);
            element.addElement(inst.getElement());
        }
View Full Code Here

            InstantiatedService inst = (InstantiatedService) m_instantiated.get(i);
            element.addElement(inst.getElement());
        }
        for (int i = 0; i < m_exported.size(); i++) {
            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());
        }
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.