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

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


     * @param metadata the new component metadata.
     * @param bundle   the bundle.
     */
    private void handleTypeDeclaration(Bundle bundle, Element metadata) {

        DefaultTypeDeclaration declaration = new DefaultTypeDeclaration(bundle.getBundleContext(), metadata);
        declaration.start();

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

    }
View Full Code Here


    public DeclarationHandle newExtension(final String name, final FactoryBuilder builder) {
        return new DefaultExtensionDeclaration(context, builder, name);
    }

    public DeclarationHandle newType(final Element description) {
        return new DefaultTypeDeclaration(context, description);
    }
View Full Code Here

        when(filter.match(m_reference)).thenReturn(true);
        when(m_bundleContext.getService(m_reference)).thenReturn(m_extension);
        when(m_extension.getFactoryBuilder()).thenReturn(m_builder);
        when(m_builder.build(any(BundleContext.class), any(Element.class))).thenReturn(factory);
*/
        when(m_bundleContext.getService(m_reference)).thenReturn(new DefaultTypeDeclaration(m_bundleContext, element("component", "test.Hello")));
        when(m_bundleContext.createFilter(anyString())).thenReturn(filter);
        when(m_reference.getBundle()).thenReturn(m_bundle);
        when(m_bundle.getBundleContext()).thenReturn(m_bundleContext);

        DeclarationLinker linker = new DeclarationLinker(m_bundleContext, m_queueService);
View Full Code Here

TOP

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

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.