Package com.caucho.lifecycle

Examples of com.caucho.lifecycle.Lifecycle


      try {
        thread.setContextClassLoader(_classLoader);

        _serverIdLocal.set(_selfServer.getId());
       
        _lifecycle = new Lifecycle(log, toString(), Level.INFO);
       
        preInit();
      } finally {
        thread.setContextClassLoader(oldLoader);
      }
View Full Code Here


    rootDirectory.mkdirs();
    dataDirectory.mkdirs();

    _serverLocal.set(this, _classLoader);

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);
   
    // lifecycle for the classloader itself
    addService(new ClassLoaderService());
   
    Thread thread = Thread.currentThread();
View Full Code Here

    String id = getClass().getSimpleName() + "[" + name + "]";
    _loader = EnvironmentClassLoader.create(parentLoader, id);
    //_loader.setOwner(this);

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);

    if (entry.getArchivePath() != null)
      Environment.addDependency(new Depend(entry.getArchivePath()), _loader);

    // _alarm = new Alarm(this);
View Full Code Here

    _classLoader
      = EnvironmentClassLoader.create(controller.getParentClassLoader(),
                                      "web-app:" + getId());

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);

    initConstructor();
  }
View Full Code Here

    _docDir = Vfs.lookup();

    _classLoader = loader;

    if (lifecycle == null)
      lifecycle = new Lifecycle(log, toString(), Level.FINE);

    _lifecycle = lifecycle;

    /*
    Environment.addEnvironmentListener(this, loader);
View Full Code Here

   * Creates the webApp with its environment loader.
   */
  public Host(HostContainer parent, HostController controller, String hostName)
  {
    super(EnvironmentClassLoader.create("host:" + controller.getName()),
          new Lifecycle(log, "Host[" + hostName + "]", Level.INFO));

    try {
      _controller = controller;

      setParent(parent);
View Full Code Here

    _webappsPath = _controller.getRootDirectory().lookup("webapps");
    WorkDir.setLocalWorkDir(_controller.getRootDirectory().lookup("META-INF/work"),
                            _loader);

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);

    if (controller.getArchivePath() != null)
      Environment.addDependency(new Depend(controller.getArchivePath()), _loader);

    _localEApp.set(this, _loader);
View Full Code Here

    try {
      thread.setContextClassLoader(_classLoader);

      _resinLocal.set(this, _classLoader);

      _lifecycle = new Lifecycle(log(), "Resin[]");

      String resinHome = System.getProperty("resin.home");

      if (resinHome != null)
        setResinHome(Vfs.lookup(resinHome));
View Full Code Here

  {
    super(loader);
   
    setWorkerIdleTimeout(LAUNCHER_TIMEOUT);
   
    _lifecycle = new Lifecycle();
  }
View Full Code Here

TOP

Related Classes of com.caucho.lifecycle.Lifecycle

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.