Package org.jboss.kernel.spi.registry

Examples of org.jboss.kernel.spi.registry.KernelRegistryEntry


      {
         // expected
      }
      try
      {
         KernelRegistryEntry test1 = makeEntry(new Object());
         registry.registerEntry(null, test1);
         fail("Expected null name error");
      }
      catch (IllegalArgumentException e)
      {
View Full Code Here


   {
      Kernel kernel = bootstrap();
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelEventManager eventManager = kernel.getEventManager();
      TestEmitter emitter = new TestEmitter();
      KernelRegistryEntry entry = makeEntry(emitter);
      registry.registerEntry("Emitter", entry);
      TestListener listener = new TestListener();
      eventManager.registerListener("Emitter", listener, null, null);
      emitter.testFire("testtype", null);
      ArrayList<KernelEvent> expected = new ArrayList<KernelEvent>();
View Full Code Here

   {
      Kernel kernel = bootstrap();
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelEventManager eventManager = kernel.getEventManager();
      TestEmitter emitter = new TestEmitter();
      KernelRegistryEntry entry = makeEntry(emitter);
      registry.registerEntry("Emitter", entry);
      TestListener listener = new TestListener();
      eventManager.registerListener("Emitter", listener, null, null);
      emitter.testFire("testtype", null);
      emitter.testFire("testtype", null);
View Full Code Here

   {
      Kernel kernel = bootstrap();
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelEventManager eventManager = kernel.getEventManager();
      TestEmitter emitter = new TestEmitter();
      KernelRegistryEntry entry = makeEntry(emitter);
      registry.registerEntry("Emitter", entry);
      TestListener listener = new TestListener();
      TestFilter filter = new TestFilter();
      eventManager.registerListener("Emitter", listener, filter, null);
      emitter.testFire("testtype", null);
View Full Code Here

   {
      Kernel kernel = bootstrap();
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelEventManager eventManager = kernel.getEventManager();
      TestEmitter emitter = new TestEmitter();
      KernelRegistryEntry entry = makeEntry(emitter);
      registry.registerEntry("Emitter", entry);
      TestListener listener = new TestListener();
      TestFilter filter = new TestFilter();
      Object handback = new Object();
      eventManager.registerListener("Emitter", listener, filter, handback);
View Full Code Here

   {
      Kernel kernel = bootstrap();
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelEventManager eventManager = kernel.getEventManager();
      Object notAnEmitter = new Object();
      KernelRegistryEntry entry = makeEntry(notAnEmitter);
      registry.registerEntry("notanemitter", entry);
      TestListener listener = new TestListener();
      try
      {
         eventManager.registerListener("notanemitter", listener, null, null);
View Full Code Here

    * @throws Throwable for any error
    */
   public Object getBean(String name) throws Throwable
   {
      org.jboss.kernel.spi.registry.KernelRegistry registry = kernel.getRegistry();
      KernelRegistryEntry entry = registry.getEntry(name);
      return entry.getTarget();
   }
View Full Code Here

      {
         Object source = event.getSource();
         if (source instanceof org.jboss.kernel.spi.registry.KernelRegistry)
         {
            org.jboss.kernel.spi.registry.KernelRegistry registry = (org.jboss.kernel.spi.registry.KernelRegistry)source;
            KernelRegistryEntry entry = registry.getEntry(name);
            if (filter == null || filter.bind(entry))
               bindContext(getBinder(), getController(), entry);
         }
      }
      else if (org.jboss.kernel.spi.registry.KernelRegistry.KERNEL_REGISTRY_UNREGISTERED.equals(type))
View Full Code Here

      injector = null;
   }

   public KernelRegistryEntry getEntry(Object name)
   {
      KernelRegistryEntry entry = null;
      try
      {
         if (name instanceof Class<?>)
         {
            Class<?> clazz = (Class<?>)name;
View Full Code Here

   }

   public SubscriptionManagerMBean getSubscriptionManager()
   {
      KernelRegistry registry = KernelLocator.getKernel().getRegistry();
      KernelRegistryEntry entry = registry.getEntry(SubscriptionManagerMBean.BEAN_NAME);
      return (SubscriptionManagerMBean)entry.getTarget();
   }
View Full Code Here

TOP

Related Classes of org.jboss.kernel.spi.registry.KernelRegistryEntry

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.