Examples of addLifeCycleListener()


Examples of org.eclipse.jetty.server.Server.addLifeCycleListener()

        context.setResourceBase(System.getProperty("user.dir"));
    context.setInitParameter(SessionManager.__CheckRemoteSessionEncoding, "true"); // Stops Jetty from adding 'jsessionid' URL rewriting into non-local URLs (e.g. Google OpenId redirects)

    server.setHandler(context);

    server.addLifeCycleListener(new AbstractLifeCycle.AbstractLifeCycleListener()
    {
      @Override
      public void lifeCycleStarted(LifeCycle event)
      {
        log.warn("Jetty ready to accept requests...");
View Full Code Here

Examples of org.eclipse.jetty.servlet.ServletContextHandler.addLifeCycleListener()

     */
    @Override
    protected void modifyServer(Server server) {
        final ServletContextHandler handler = new ServletContextHandler(null, "/graphaware", ServletContextHandler.SESSIONS);

        handler.addLifeCycleListener(new AbstractLifeCycle.AbstractLifeCycleListener() {
            @Override
            public void lifeCycleStarting(LifeCycle event) {
                try {
                    new WebAppInitializer(getDatabase()).onStartup(handler.getServletContext());
                } catch (ServletException e) {
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebAppContext.addLifeCycleListener()

        WebAppContext wac = new WebAppContext();
        wac.setClassLoader(Thread.currentThread().getContextClassLoader());
        wac.setContextPath("/");
        wac.setWar("web");
        wac.setDefaultsDescriptor("etc/webdefault.xml");
        wac.addLifeCycleListener(new AbstractLifeCycle.AbstractLifeCycleListener()
        {
            @Override
            public void lifeCycleStarting(LifeCycle arg0)
            {
            }
View Full Code Here

Examples of org.glassfish.webservices.monitoring.WebServiceEngine.addLifecycleListener()

    private AppServRegistry() {
        final WSEndpointLifeCycleListener lifecycleListener = new WSEndpointLifeCycleListener();

        final WebServiceEngine engine = WebServiceEngineImpl.getInstance();
        engine.addLifecycleListener(lifecycleListener);

        populateEndpoints(engine);
    }

    /**
 
View Full Code Here

Examples of org.huihoo.willow.Lifecycle.addLifecycleListener()

    // Add this LifecycleListener to our associated component
    Lifecycle lifecycle = (Lifecycle) digester.peek();
   
    Class clazz = lifecycle.getClass().getClassLoader().loadClass(className);
    LifecycleListener listener = (LifecycleListener) clazz.newInstance();     
    lifecycle.addLifecycleListener(listener);
  }

}
View Full Code Here

Examples of org.jmule.core.JMuleCore.addLifecycleListener()

        }

      };

      _core.addLifecycleListener(core_lifecycle_listener);

      _core.start();

      splash.increaseProgress(10, "JMule core started");
View Full Code Here

Examples of org.mortbay.jetty.Server.addLifeCycleListener()

            @Override
            protected void startJetty() {
                final Server jettyServer = getJetty();
                jettyServer.setStopAtShutdown(true);
                final Server server = jettyServer.getServer();
                server.addLifeCycleListener(startupListener);
                // addAccessLogHandler(server);
                super.startJetty();

                startupListener.await();
            }
View Full Code Here

Examples of org.mortbay.jetty.webapp.WebAppContext.addLifeCycleListener()

            String webApplicationPath = System.getProperty("qman.war");
            File rootFolderPath = (webApplicationPath != null) ? new File(webApplicationPath) : new File(".");
           
            webapp.setWar(rootFolderPath.toURI().toURL().toExternalForm());
            webapp.addLifeCycleListener(_lifecycleListener);
            _server.setHandler(webapp);
            _server.start();
            System.setProperty(Names.ADAPTER_PORT_PROPERTY_NAME,String.valueOf( _connector.getLocalPort()));           
            _server.join();
           
View Full Code Here

Examples of org.pentaho.platform.engine.core.system.boot.PentahoSystemBoot.addLifecycleListener()

    boot.define( ISolutionEngine.class.getSimpleName(), Object1.class.getName(),
      IPentahoDefinableObjectFactory.Scope.GLOBAL );

    TestLifecycleListener lifecycleListener1 = new TestLifecycleListener();
    TestLifecycleListener lifecycleListener2 = new TestLifecycleListener();
    boot.addLifecycleListener( lifecycleListener1 );

    List<IPentahoSystemListener> lifecycleListeners1 = boot.getLifecycleListeners();
    assertEquals( 1, lifecycleListeners1.size() );
    assertEquals( lifecycleListener1, lifecycleListeners1.get( 0 ) );
    assertFalse( TestLifecycleListener.startupCalled );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.