Package anvil.server

Examples of anvil.server.ZoneClassLoader


  private CompiledModule doLoadClass()
  {
    String classname = getClassname();
    try {
      ZoneClassLoader clsldr = _address.getZone().getClassLoader();
      Class cls = clsldr.loadClass(classname);
      CompiledModule script = (CompiledModule)cls.newInstance();
      classname   = cls.getName();
      _descriptor = classname.replace('.', '/');
      _version    = script.getVersion();
      script.init(_address);
View Full Code Here


      synchronized(this) {
        if (_dispatcher != null) {
          return _dispatcher;
        }
        try {
          ZoneClassLoader loader = context.zone().getClassLoader();
          return (_dispatcher = DispatcherFactory.create(this, loader));
        } catch (Throwable t) {
          context.log().error("CompiledClass.createDispatcher(" + this + ")", t);
          throw context.InternalError("Creation of dispatcher failed: "+t);
        }
View Full Code Here

          e[i].compile(this);
        }

        errorCheck();
        synchronized (LOAD_LOCK) {
          ZoneClassLoader clsldr = _address.getZone().getClassLoader();
          try {
            clsldr.setMemoryLoader(_loader);

            for(int i=0; i<n; i++) {
              if (!e[i].loadClass()) {
                error(null, "Loading of "+e[i].getAddress()+" failed");
              }
            }
          } finally {
            clsldr.setMemoryLoader(null);
          }

          errorCheck();

          for(int i=0; i<n; i++) {
View Full Code Here

      synchronized(this) {
        if (_dispatcher != null) {
          return _dispatcher;
        }
        try {
          ZoneClassLoader loader = context.zone().getClassLoader();
          return (_dispatcher = DispatcherFactory.create(this, loader));
        } catch (Throwable t) {
          context.log().error("NativeClass.createDispatcher(" + this + ")", t);
          throw context.InternalError("Creation of dispatcher failed: "+t);
        }
View Full Code Here

TOP

Related Classes of anvil.server.ZoneClassLoader

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.