Examples of BlueprintListener


Examples of org.osgi.service.blueprint.container.BlueprintListener

                    if (event.getType() == ConfigurationEvent.CM_LOCATION_CHANGED) {
                        latch.countDown();
                    }
                    // when we update the configuration, BP container will be reloaded as well
                    // hoping that we get the event after *second* restart, let's register the listener
                    answer.registerService(BlueprintListener.class, new BlueprintListener() {
                        @Override
                        public void blueprintEvent(BlueprintEvent event) {
                            if (event.getType() == BlueprintEvent.CREATED && event.getBundle().getSymbolicName().equals(symbolicName)) {
                                latch.countDown();
                            }
View Full Code Here

Examples of org.osgi.service.blueprint.container.BlueprintListener

        // no op
        return name;
    }

    public void postRegister(Boolean registrationDone) {
        BlueprintListener listener = new BlueprintStateListener();
        // reg listener
        listenerReg = context.registerService(BlueprintListener.class.getName(), listener, null);
    }
View Full Code Here

Examples of org.osgi.service.blueprint.container.BlueprintListener

    }

    public void postRegister(Boolean registrationDone) {
        // reg listener
        if (registrationDone && registrations.incrementAndGet() == 1) {
            BlueprintListener listener = new BlueprintStateListener();
            eventDispatcher = Executors.newSingleThreadExecutor(new JMXThreadFactory("JMX OSGi Blueprint State Event Dispatcher"));
            listenerReg = context.registerService(BlueprintListener.class.getName(), listener, null);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.