Package org.apache.felix.ipojo.manipulator.metadata.annotation

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.ClassMetadataCollector


     * @param metadata list of metadata to be filled
     */
    private void computeAnnotations(String name, byte[] bytecode, List<Element> metadata) {

        ClassReader cr = new ClassReader(bytecode);
        ClassMetadataCollector collector = new ClassMetadataCollector(m_registry, m_reporter);
        cr.accept(collector, 0);

        if (collector.getComponentMetadata() != null) {
            metadata.add(collector.getComponentMetadata());

            // Instantiate ?
            Element instance = collector.getInstanceMetadata();
            if (instance != null) {
                m_reporter.trace("Declaring an instance of %s", instance.getAttribute("component"));
                metadata.add(instance);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.metadata.annotation.ClassMetadataCollector

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.