Package com.caucho.loader

Examples of com.caucho.loader.EnvironmentClassLoader


   
    return instance;
  }
  public <T> void addDestructor(Contextual<T> comp, T value)
  {
    EnvironmentClassLoader loader = Environment.getEnvironmentClassLoader();

    if (loader != null) {
      DestructionListener listener
        = (DestructionListener) loader.getAttribute("caucho.destroy");

      if (listener == null) {
        listener = new DestructionListener();
        loader.setAttribute("caucho.destroy", listener);
        loader.addListener(listener);
      }

      listener.addValue(comp, value);
    }
  }
View Full Code Here


    props.put(key, value);
  }

  private static ConfigProperties createConfigProperties(ClassLoader loader)
  {
    EnvironmentClassLoader envLoader
      = Environment.getEnvironmentClassLoader(loader);

    ConfigProperties props = _envProperties.getLevel(envLoader);

    if (props != null)
      return props;

    if (envLoader != null) {
      ConfigProperties parent = createConfigProperties(envLoader.getParent());

      props = new ConfigProperties(parent);
    }
    else
      props = new ConfigProperties(null);
View Full Code Here

  private ArtifactRepository(EnvironmentClassLoader loader)
  {
    _loader = loader;

    if (loader != null) {
      EnvironmentClassLoader parentLoader
        = Environment.getEnvironmentClassLoader(loader.getParent());

      if (parentLoader != null && parentLoader != loader)
        _parent = create(parentLoader);
    }
View Full Code Here

        ClassLoader parentLoader = null;
       
        if (loader != null)
          parentLoader = loader.getParent();
       
        EnvironmentClassLoader envLoader
          = Environment.getEnvironmentClassLoader(parentLoader);

        repository = new ArtifactRepository(envLoader);

        _local.set(repository);
View Full Code Here

TOP

Related Classes of com.caucho.loader.EnvironmentClassLoader

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.