Package org.apache.aries.util.tracker

Examples of org.apache.aries.util.tracker.RecursiveBundleTracker


        // tracking the initial bundles. To work around this issue, we need to register
        // a synchronous bundle listener that will ensure the stopping event will be correctly
        // handled.
        context.addBundleListener(this);
        int mask = Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.STOPPING | Bundle.ACTIVE;
        bt = new RecursiveBundleTracker(ctx, mask, this);
       
        proxyManager = new SingleServiceTracker<ProxyManager>(ctx, ProxyManager.class, new SingleServiceListener() {
          public void serviceFound() {
            LOGGER.debug("Found ProxyManager service, starting to process blueprint bundles");
            bt.open();
View Full Code Here


    }
   
   
    @Test(expected=IllegalArgumentException.class)
    public void testMissingStopping() {
        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE, null);
    }
View Full Code Here

        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE, null);
    }
   
    @Test(expected=IllegalArgumentException.class)
    public void testMissingStarting() {
        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }
View Full Code Here

        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }

    @Test(expected=IllegalArgumentException.class)
    public void testMissingInstalled() {
        new RecursiveBundleTracker(null, Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }
View Full Code Here

        eventDispatcher = new BlueprintEventDispatcher(ctx, executors);
        containers = new HashMap<Bundle, BlueprintContainerImpl>();

        int stateMask = Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE
        | Bundle.STOPPING;
        bt = new RecursiveBundleTracker(ctx, stateMask, new BlueprintBundleTrackerCustomizer());
       
        proxyManager = new SingleServiceTracker<ProxyManager>(ctx, ProxyManager.class, new SingleServiceListener() {
          public void serviceFound() {
            LOGGER.debug("Found ProxyManager service, starting to process blueprint bundles");
            bt.open();
View Full Code Here

    }
   
    //Setup OpenEJB with our own extensions
    setupOpenEJB();
   
    tracker = new RecursiveBundleTracker(context, Bundle.INSTALLED | Bundle.RESOLVED |
        Bundle.STARTING | Bundle.ACTIVE | Bundle.STOPPING, this);

    tracker.open();
  }
View Full Code Here

        // tracking the initial bundles. To work around this issue, we need to register
        // a synchronous bundle listener that will ensure the stopping event will be correctly
        // handled.
        context.addBundleListener(this);
        int mask = Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.STOPPING | Bundle.ACTIVE;
        bt = new RecursiveBundleTracker(ctx, mask, this);
       
        proxyManager = new SingleServiceTracker<ProxyManager>(ctx, ProxyManager.class, new SingleServiceListener() {
          public void serviceFound() {
            LOGGER.debug("Found ProxyManager service, starting to process blueprint bundles");
            bt.open();
View Full Code Here

    }
   
   
    @Test(expected=IllegalArgumentException.class)
    public void testMissingStopping() {
        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE, null);
    }
View Full Code Here

        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE, null);
    }
   
    @Test(expected=IllegalArgumentException.class)
    public void testMissingStarting() {
        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }
View Full Code Here

        new RecursiveBundleTracker(null, Bundle.INSTALLED | Bundle.RESOLVED | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }

    @Test(expected=IllegalArgumentException.class)
    public void testMissingInstalled() {
        new RecursiveBundleTracker(null, Bundle.RESOLVED | Bundle.STARTING | Bundle.ACTIVE | Bundle.STOPPING, null);       
    }
View Full Code Here

TOP

Related Classes of org.apache.aries.util.tracker.RecursiveBundleTracker

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.