Package org.jboss.bootstrap.api.lifecycle

Examples of org.jboss.bootstrap.api.lifecycle.LifecycleEventHandler


      // Set JBOSS_HOME
      this.getConfiguration().jbossHome(jbossHome);

      // Set some lifecycle handlers
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler ignoreXbOrder = new IgnoreXbUnorderedSequenceLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, ignoreXbOrder);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler setRmiHostname = new SetRmiHostnameLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, setRmiHostname);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler initLoggingManager = new InitLoggingManagerLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, initLoggingManager);

      //TODO
      /*
 
View Full Code Here


      super.doInitialize();

      // JBBOOT-68
      //TODO Remove once VFS is init'd from something else
      // Register an event handler to init VFS alongside server start
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler initVfsHandler = new VfsInitializingLifecycleEventHandler();
      this.registerEventHandler(initVfsHandler, LifecycleState.INITIALIZED);

      // Create and Register handlers
      final BasicBootstrap bootstrap = this.getBootstrap();
      final LifecycleEventHandler startHandler = new KernelStartEventLifecycleEventHandler(bootstrap);
      final LifecycleEventHandler stopHandler = new KernelStopEventLifecycleEventHandler(bootstrap);
      this.registerEventHandler(startHandler, LifecycleState.STARTED);
      this.registerEventHandler(stopHandler, LifecycleState.STOPPING);

      // Log the server info
      this.logServerInfo();
View Full Code Here

   {
      // Invoke super
      super.doInitialize();

      // Set some lifecycle handlers
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler ignoreXbOrder = new IgnoreXbUnorderedSequenceLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, ignoreXbOrder);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler setRmiHostname = new SetRmiHostnameLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, setRmiHostname);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler initLoggingManager = new InitLoggingManagerLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, initLoggingManager);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler ipv4Handler = new SetIPv4LifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, ipv4Handler);
      @SuppressWarnings("deprecation")
      final LifecycleEventHandler repeatableParticleHandlers = new NoXbRepeatableParticleHandlersLifecycleEventHandler();
      this.registerEventHandler(LifecycleState.INITIALIZED, repeatableParticleHandlers);
      // Init Logging levels
      //TODO Remove when we can JBLOGGING-37
      this.registerEventHandler(InitLogManagerLevelsLifecycleEventHandler.INSTANCE, LifecycleState.INITIALIZED);
View Full Code Here

      // Set up the bootstrap descriptors
      this.setupBootstrapDescriptorsFromBootstrapUrl();

      // Create and Register handlers
      final LifecycleEventHandler startHandler = new KernelStartEventLifecycleEventHandler(this);
      final LifecycleEventHandler stopHandler = new KernelStopEventLifecycleEventHandler(this);
      this.registerEventHandler(startHandler, LifecycleState.STARTED);
      this.registerEventHandler(stopHandler, LifecycleState.STOPPING);

      // Log the server info
      this.logServerInfo();
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.api.lifecycle.LifecycleEventHandler

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.