Logo Search packages:      
Sourcecode: icedtea-web version File versions  Download package

void net::sourceforge::jnlp::runtime::JNLPClassLoader::merge ( JNLPClassLoader  extLoader  )  [inline, private]

Merges the code source/security descriptor mapping from another loader

Parameters:
extLoader The loader form which to merge
Exceptions:
SecurityException if the code is called from an untrusted source

Definition at line 1214 of file JNLPClassLoader.java.

References addNativeDirectory(), getNativeDirectories(), and jarLocationSecurityMap.

Referenced by getInstance().

                                                      {

                try {
                        System.getSecurityManager().checkPermission(new AllPermission());
                } catch (SecurityException se) {
                        throw new SecurityException("JNLPClassLoader() may only be called from trusted sources!");
                }

                // jars
                for (URL u : extLoader.getURLs())
                addURL(u);

                // native search paths
        for (File nativeDirectory: extLoader.getNativeDirectories())
            addNativeDirectory(nativeDirectory);

        // security descriptors
                for (URL key: extLoader.jarLocationSecurityMap.keySet()) {
                        jarLocationSecurityMap.put(key, extLoader.jarLocationSecurityMap.get(key));
                }
        }


Generated by  Doxygen 1.6.0   Back to index