Package org.apache.aries.blueprint.sample

Examples of org.apache.aries.blueprint.sample.DestroyTest


      bundleContext.registerService(Runnable.class.getName(), new Thread(), null);
     
      BlueprintContainer blueprintContainer = Helper.getBlueprintContainerForBundle(context(), "org.apache.aries.blueprint.sample");
      assertNotNull(blueprintContainer);
     
      DestroyTest dt = (DestroyTest) blueprintContainer.getComponentInstance("destroyCallingReference");
     
      Bundle b = findBundle("org.apache.aries.blueprint.sample");
      assertNotNull(b);
      b.stop();
     
      assertTrue("The destroy method was called", dt.waitForDestruction(1000));
     
      Exception e = dt.getDestroyFailure();
     
      if (e != null) throw e;
    }
View Full Code Here


      bundleContext.registerService(Runnable.class.getName(), new Thread(), null);
     
      BlueprintContainer blueprintContainer = Helper.getBlueprintContainerForBundle(context(), "org.apache.aries.blueprint.sample");
      assertNotNull(blueprintContainer);
     
      DestroyTest dt = (DestroyTest) blueprintContainer.getComponentInstance("destroyCallingReference");
     
      Bundle b = findBundle("org.apache.aries.blueprint.sample");
      assertNotNull(b);
      b.stop();
     
      assertTrue("The destroy method was called", dt.waitForDestruction(1000));
     
      Exception e = dt.getDestroyFailure();
     
      if (e != null) throw e;
    }
View Full Code Here

TOP

Related Classes of org.apache.aries.blueprint.sample.DestroyTest

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.