Package org.osgi.service.blueprint.reflect

Examples of org.osgi.service.blueprint.reflect.Target


            } finally {
                processingStack.removeLast();
            }
        }
       
        Target factoryComponent = component.getFactoryComponent();
        if(factoryComponent != null) {
           
            try {
               
                if(component instanceof MutableBeanMetadata) {
View Full Code Here


              processingStack.removeLast();
            }
        }
       
        for (RegistrationListener listener : component.getRegistrationListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Registration Listener " + listenerComponent + "->");
                if(listener instanceof MutableRegistrationListener) {
                    ((MutableRegistrationListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

        return processServiceReferenceMetadata(component);
    }

    private Metadata processServiceReferenceMetadata(ServiceReferenceMetadata component) {
        for (ReferenceListener listener : component.getReferenceListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Reference Listener " + listenerComponent + "->");
                if(listener instanceof MutableReferenceListener) {
                    ((MutableReferenceListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

            } finally {
                processingStack.removeLast();
            }
        }
       
        Target factoryComponent = component.getFactoryComponent();
        if(factoryComponent != null) {
           
            try {
               
                if(component instanceof MutableBeanMetadata) {
View Full Code Here

              processingStack.removeLast();
            }
        }
       
        for (RegistrationListener listener : component.getRegistrationListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Registration Listener " + listenerComponent + "->");
                if(listener instanceof MutableRegistrationListener) {
                    ((MutableRegistrationListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

                ((MutableServiceReferenceMetadata) component).setExtendedFilter(
                        doProcessValueMetadata(valueMetadata));
            }
        }
        for (ReferenceListener listener : component.getReferenceListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Reference Listener " + listenerComponent + "->");
                if(listener instanceof MutableReferenceListener) {
                    ((MutableReferenceListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

        // in which case we use the bean id.
        serviceName = serviceMetadata.getId();
       
        // If the Service references a Bean, export the bean id as a service property
        // as per 121.6.5 p669 of the blueprint 1.0 specification
        Target t = serviceMetadata.getServiceComponent();
        String targetId = null;
        if (t instanceof RefMetadata) {
          targetId = ((RefMetadata)t).getComponentId();
        } else if (t instanceof BeanMetadata) {
          targetId = ((BeanMetadata)t).getId();
View Full Code Here

            } finally {
                processingStack.removeLast();
            }
        }
       
        Target factoryComponent = component.getFactoryComponent();
        if(factoryComponent != null) {
           
            try {
               
                if(component instanceof MutableBeanMetadata) {
View Full Code Here

              processingStack.removeLast();
            }
        }
       
        for (RegistrationListener listener : component.getRegistrationListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Registration Listener " + listenerComponent + "->");
                if(listener instanceof MutableRegistrationListener) {
                    ((MutableRegistrationListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

        return processServiceReferenceMetadata(component);
    }

    private Metadata processServiceReferenceMetadata(ServiceReferenceMetadata component) {
        for (ReferenceListener listener : component.getReferenceListeners()) {
            Target listenerComponent = listener.getListenerComponent();
            try {
                processingStack.add("Reference Listener " + listenerComponent + "->");
                if(listener instanceof MutableReferenceListener) {
                    ((MutableReferenceListener) listener).setListenerComponent((Target) processMetadata(listenerComponent));
                } else {
View Full Code Here

TOP

Related Classes of org.osgi.service.blueprint.reflect.Target

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.