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

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.registry.Binding


    public class StereotypeBindingBuilder {
        private final AnnotationType m_annotationType;

        public StereotypeBindingBuilder(final List<Binding> bindings, final Class<? extends Annotation> type) {
            m_annotationType = new AnnotationType(Type.getType(type));
            Binding binding = new Binding();
            binding.setAnnotationType(m_annotationType.getType());
            binding.setPredicate(onlySupportedElements(type));
            binding.setFactory(new StereotypeVisitorFactory(m_annotationType));
            bindings.add(binding);
        }
View Full Code Here


    public class HandlerBindingBuilder {

        private final Binding m_binding;

        public HandlerBindingBuilder(final List<Binding> bindings, final Class<? extends Annotation> annotationType) {
            m_binding = new Binding();
            Type type = Type.getType(annotationType);
            m_binding.setAnnotationType(type);
            m_binding.setPredicate(onlySupportedElements(annotationType));
            Element e = Elements.buildElement(type);
            m_binding.setFactory(new GenericVisitorFactory(e.getName(), e.getNameSpace()));
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.metadata.annotation.registry.Binding

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.