Package org.huihoo.willow

Examples of org.huihoo.willow.LifecycleException


   */
  public void start() throws LifecycleException
  {
    if (started)
    {
      throw new LifecycleException(sm.getString("workflowLoader.alreadyStarted"));
    }

    log.debug(sm.getString("workflowLoader.starting"));

    lifecycle.fireLifecycleEvent(START_EVENT, null);
    started = true;

    // Construct a class loader based on our current repositories list
    try
    {

      classLoader = createClassLoader();
      classLoader.setDebug(this.debug);
      classLoader.setDelegate(this.delegate);

      for (int i = 0; i < repositories.length; i++)
      {
        classLoader.addRepository(repositories[i]);
      }

      // Configure our repositories
      setRepositories();
      setClassPath();

      setPermissions();

      if (classLoader instanceof Lifecycle)
      {
        ((Lifecycle) classLoader).start();
      }

    }
    catch (Throwable t)
    {
      log.error("LifecycleException ", t);
      throw new LifecycleException("start: ", t);
    }

  }
View Full Code Here


  {

    // Validate and update our current component state
    if (!started)
    {
      throw new LifecycleException(sm.getString("workflowLoader.notStarted"));
    }

    log.debug(sm.getString("workflowLoader.stopping"));
    lifecycle.fireLifecycleEvent(STOP_EVENT, null);
    started = false;
View Full Code Here

    log.debug("Stopping");

    // Validate and update our current component state
    if (!started)
    {
      throw new LifecycleException(sm.getString("sessionManager.notStarted"));
    }
    lifecycle.fireLifecycleEvent(STOP_EVENT, null);
    started = false;

    // Expire all active sessions
View Full Code Here

    if (userDatabase == null)
    {
      if (throwable != null)
      {
        log.error(sm.getString("userDatabaseRealm.noDatabase"), throwable);
        throw new LifecycleException(sm.getString("userDatabaseRealm.noDatabase"), throwable);
      }
      else
      {
        throw new LifecycleException(sm.getString("userDatabaseRealm.noDatabase"));
      }
    }
  }
View Full Code Here

  {

    // Validate and update our current component state
    if (!started)
    {
      throw new LifecycleException(sm.getString("containerBase.notStarted", logName()));
    }

    log.debug("Stopping");

    // Notify our interested LifecycleListeners
View Full Code Here

    // Validate the setup of our required system properties
    initDirs();
    // Validate and update our current component state
    if (started)
    {
      throw new LifecycleException(sm.getString("embedded.alreadyStarted"));
    }
    lifecycle.fireLifecycleEvent(START_EVENT, null);
   
    super.start();
   
View Full Code Here

  {
    log.debug("Stopping embedded server");
    // Validate and update our current component state
    if (!started)
    {
      throw new LifecycleException(sm.getString("embedded.notStarted"));
    }
    lifecycle.fireLifecycleEvent(STOP_EVENT, null);
   
    super.stop();
   
View Full Code Here

TOP

Related Classes of org.huihoo.willow.LifecycleException

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.