Package org.jboss.kernel.spi.event

Examples of org.jboss.kernel.spi.event.KernelEvent


   // Public --------------------------------------------------------

   public void testFire(String type, Object context)
   {
      KernelEvent event = createEvent(type, context);
      fireKernelEvent(event);
   }
View Full Code Here


      }
     
      // TODO optional interceptor
      if (hasListeners())
      {
         KernelEvent event = createEvent(KERNEL_REGISTRY_REGISTERED, name);
         fireKernelEvent(event);
      }
   }
View Full Code Here

      }

      // TODO optional interceptor
      if (hasListeners())
      {
         KernelEvent event = createEvent(KERNEL_REGISTRY_UNREGISTERED, name);
         fireKernelEvent(event);
      }
     
      return entry;
   }
View Full Code Here

      // Send a notification
      final KernelEventManager eventMgr = kernel.getEventManager();
      final long currentTime = System.currentTimeMillis();
      final String type = this.getNotificationType();
      final KernelEvent event = new AbstractEvent(eventMgr, type, 0, currentTime, new Long(currentTime));
      eventMgr.fireKernelEvent(event);

      // Log
      log.debug("Fired: " + event);
   }
View Full Code Here

         addKernelRegistryFactory(factory);
      }
     
      if (hasListeners())
      {
         KernelEvent event = createEvent(org.jboss.kernel.spi.registry.KernelRegistry.KERNEL_REGISTRY_REGISTERED, name);
         fireKernelEvent(event);
      }
   }
View Full Code Here

         removeKernelRegistryFactory(factory);
      }

      if (hasListeners())
      {
         KernelEvent event = createEvent(org.jboss.kernel.spi.registry.KernelRegistry.KERNEL_REGISTRY_UNREGISTERED, name);
         fireKernelEvent(event);
      }
     
      return entry;
   }
View Full Code Here

*/
public class TestEmitter extends AbstractEventEmitter
{
   public void testFire(String type, Object context)
   {
      KernelEvent event = createEvent(type, context);
      fireKernelEvent(event);
   }
View Full Code Here

         // Check it is complete
         kernelDeployer.validate();
        
         // Send a notification that the startup is complete
         KernelEventManager eventMgr = kernel.getEventManager();
         KernelEvent startEvent = new AbstractEvent(eventMgr, START_NOTIFICATION_TYPE, 0, System.currentTimeMillis(), new Long(watch.getLapTime()));
         eventMgr.fireKernelEvent(startEvent);

         this.bootstrap = bootstrap;
      }
      catch (Throwable t)
View Full Code Here

      // Send a stop event msg
      try
      {
         if (bootstrap != null)
         {
            KernelEvent stopEvent = bootstrap.createEvent(STOP_NOTIFICATION_TYPE, null);
            bootstrap.fireKernelEvent(stopEvent);
         }
      }
      catch (Throwable t)
      {
View Full Code Here

      // Send a notification
      final KernelEventManager eventMgr = kernel.getEventManager();
      final long currentTime = System.currentTimeMillis();
      final String type = this.getNotificationType();
      final KernelEvent event = new AbstractEvent(eventMgr, type, 0, currentTime, new Long(currentTime));
      eventMgr.fireKernelEvent(event);

      // Log
      log.debug("Fired: " + event);
   }
View Full Code Here

TOP

Related Classes of org.jboss.kernel.spi.event.KernelEvent

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.