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

Examples of org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ignore.NullBinding


        assertNotNull(registry.type);
    }

    public void testKnownDescriptorDoNotTriggerCallback() throws Exception {
        EmptyCompletableBindingRegistry registry = new EmptyCompletableBindingRegistry(delegate);
        when(delegate.getBindings(DESCRIPTOR)).thenReturn(Collections.<Binding>singletonList(new NullBinding(Type.getType(DESCRIPTOR))));

        registry.getBindings(DESCRIPTOR);

        assertNull(registry.type);
    }
View Full Code Here


    protected HandlerBindingBuilder bindHandlerBinding(Class<? extends Annotation> annotationType) {
        return new HandlerBindingBuilder(bindings, annotationType);
    }

    protected void bindIgnore(Class<? extends Annotation> annotationType) {
        bindings.add(new NullBinding(Type.getType(annotationType)));
    }
View Full Code Here

        super(delegate, reporter);
    }

    @Override
    protected List<Binding> createBindings(final Type type) {
        return singletonList((Binding) new NullBinding(type));
    }
View Full Code Here

    }

    protected Iterable<Binding> nullBindingsForMetaAnnotations() {
        // Do not re-apply meta-annotations
        ArrayList<Binding> bindings = new ArrayList<Binding>();
        bindings.add(new NullBinding(Type.getType(Stereotype.class)));
        bindings.add(new NullBinding(Type.getType(HandlerBinding.class)));
        bindings.add(new NullBinding(Type.getType(Ignore.class)));
        return bindings;
    }
View Full Code Here

        }

        // Its IMPORTANT that the @Ignore is processed last since it removes existing bindings
        if (ignoredDiscovery.isIgnore()) {
            m_reporter.trace("@Ignore detected: @%s", type.getClassName());
            Binding binding = new NullBinding(type);

            bindings.clear();
            bindings.add(binding);
            bindings = unmodifiableList(bindings); // just in case of ...
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ignore.NullBinding

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.