Package nz.govt.natlib.meta.config

Examples of nz.govt.natlib.meta.config.Loader


      JarResources jar = new JarResources(jarNameTxt.getText());
      Set contents = jar.listContents();
      Iterator it = contents.iterator();
      xmlFiles = new ArrayList();
      adapterClass = null;
      Loader miniLoader = new Loader();
      while (it.hasNext()) {
        String path = (String) it.next();
        if (path.endsWith(".class")) {
          if (adapterClass == null) {
            String className = path.substring(0,
                path.indexOf(".class")).replace('/', '.');
            byte[] classBytes = null;
            classBytes = jar.getResource(path);
            if (classBytes != null) {
              Class cl = null;
              try {
                cl = miniLoader.returnClass(className,
                    classBytes, 0, classBytes.length);
              } catch (NoClassDefFoundError cnf) {
                // LogManager.getInstance().logMessage(new
                // LogMessage(LogMessage.WORTHLESS_CHATTER,cnf,"Adapter
                // class load ignored","Adapter may be corrupt,
View Full Code Here

TOP

Related Classes of nz.govt.natlib.meta.config.Loader

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.