FileDocCategorySizeDatePackage
ClassPathManager15.javaAPI DocGlassfish v2 API3865Fri May 04 22:34:22 BST 2007com.sun.enterprise.appclient.jws.boot

ClassPathManager15

public class ClassPathManager15 extends ClassPathManager
Class Path manager for Java Web Start-aware ACC running under Java runtime 1.5.x.
author
tjquinn

Fields Summary
Constructors Summary
protected ClassPathManager15(ClassLoader loader, boolean keepJWSClassLoader)
Return a new instance of the manager

param
loader the Java Web Start-provided class loader

        super(loader, keepJWSClassLoader);
    
Methods Summary
public java.io.FilefindContainingJar(java.net.URL resourceURL)

        File result = null;
        if (resourceURL != null) {
            URI uri = resourceURL.toURI();
            String scheme = uri.getScheme();
            String ssp = uri.getSchemeSpecificPart();
            if (scheme.equals("jar")) {
                /*
                 *The scheme-specific part will look like "file:<file-spec>!/<path-to-class>.class"
                 *so we need to isolate the scheme and the <file-spec> part.  
                 *The subscheme (the scheme within the jar) precedes the colon
                 *and the file spec appears after it and before the exclamation point.
                 */
                int colon = ssp.indexOf(':");
                String subscheme = ssp.substring(0, colon);
                int excl = ssp.indexOf('!");
                String containingJarPath = ssp.substring(colon + 1, excl);
                result = new File(containingJarPath);
            } else {
                throw new IllegalArgumentException(resourceURL.toExternalForm());
            }
        }
        return result;
    
public java.lang.ClassLoadergetParentClassLoader()

        return (keepJWSClassLoader() ? getJnlpClassLoader() : null);