Package org.apache.felix.ipojo.extender.internal.declaration

Examples of org.apache.felix.ipojo.extender.internal.declaration.DefaultInstanceDeclaration


        }

        m_logger.log(Log.WARNING, instances.size() + " instances found in class " + classname);
        //Build and enqueue declaration
        for (Instance instance : instances) {
            DefaultInstanceDeclaration declaration = new DefaultInstanceDeclaration(bundle.getBundleContext(),
                    instance.factory(), instance.configuration());
            declaration.start();
            getComponentsAndInstances(bundle).m_instances.add(declaration);
        }
    }
View Full Code Here


    private void handleInstanceDeclaration(Bundle bundle, Dictionary instance) {

        String component = (String) instance.get(COMPONENT_INSTANCE_ATTRIBUTE);
        //String v = (String) instance.get(Factory.FACTORY_VERSION_PROPERTY); //TODO CES to GSA, why this is commented ?

        DefaultInstanceDeclaration declaration = new DefaultInstanceDeclaration(bundle.getBundleContext(),
                component, instance);
        declaration.start();

        getComponentsAndInstances(bundle).m_instances.add(declaration);

    }
View Full Code Here

        if (version != null) {
            configuration.put(Factory.FACTORY_VERSION_PROPERTY, version);
        }

        return new DefaultInstanceDeclaration(context, type, configuration);

    }
View Full Code Here


    public void testDeclarationIsNotAutomaticallyStarted() throws Exception {
        InstanceBuilder builder = new DefaultInstanceBuilder(m_bundleContext, "type");
        DeclarationHandle handle = builder.build();
        DefaultInstanceDeclaration did = (DefaultInstanceDeclaration) handle;

        assertFalse(did.isRegistered());
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.extender.internal.declaration.DefaultInstanceDeclaration

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.