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

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


                return;
            }

            try {
                ReflectiveFactoryBuilder builder = new ReflectiveFactoryBuilder(clazz.getConstructor(BundleContext.class, Element.class));
                DefaultExtensionDeclaration declaration = new DefaultExtensionDeclaration(bundle.getBundleContext(), builder, type);

                getBundleDeclarations(bundle).add(declaration);

                declaration.start();

                m_logger.log(Logger.DEBUG, "New factory type available: " + type);
            } catch (NoSuchMethodException e) {
                m_logger.log(Logger.ERROR,
                        String.format("Extension '%s' is missing the required (BundleContext, Element) public " +
View Full Code Here


                .version(version)
                .name(name);
    }

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

TOP

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

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.