588 |
* in the order given to the URLClassLoader which uses these URLs to |
* in the order given to the URLClassLoader which uses these URLs to |
589 |
* load classes and resources (after using the default parent ClassLoader). |
* load classes and resources (after using the default parent ClassLoader). |
590 |
* |
* |
|
* @exception SecurityException if the SecurityManager disallows the |
|
|
* creation of a ClassLoader. |
|
591 |
* @param urls Locations that should be searched by this ClassLoader when |
* @param urls Locations that should be searched by this ClassLoader when |
592 |
* resolving Classes or Resources. |
* resolving Classes or Resources. |
593 |
|
* @exception SecurityException if the SecurityManager disallows the |
594 |
|
* creation of a ClassLoader. |
595 |
* @see SecureClassLoader |
* @see SecureClassLoader |
596 |
*/ |
*/ |
597 |
public URLClassLoader(URL[] urls) throws SecurityException |
public URLClassLoader(URL[] urls) throws SecurityException |
610 |
* can throw a SecurityException. Then the supplied URLs are added |
* can throw a SecurityException. Then the supplied URLs are added |
611 |
* in the order given to the URLClassLoader which uses these URLs to |
* in the order given to the URLClassLoader which uses these URLs to |
612 |
* load classes and resources (after using the supplied parent ClassLoader). |
* load classes and resources (after using the supplied parent ClassLoader). |
|
* @exception SecurityException if the SecurityManager disallows the |
|
|
* creation of a ClassLoader. |
|
|
* @exception SecurityException |
|
613 |
* @param urls Locations that should be searched by this ClassLoader when |
* @param urls Locations that should be searched by this ClassLoader when |
614 |
* resolving Classes or Resources. |
* resolving Classes or Resources. |
615 |
* @param parent The parent class loader used before trying this class |
* @param parent The parent class loader used before trying this class |
616 |
* loader. |
* loader. |
617 |
|
* @exception SecurityException if the SecurityManager disallows the |
618 |
|
* creation of a ClassLoader. |
619 |
|
* @exception SecurityException |
620 |
* @see SecureClassLoader |
* @see SecureClassLoader |
621 |
*/ |
*/ |
622 |
public URLClassLoader(URL[] urls, ClassLoader parent) |
public URLClassLoader(URL[] urls, ClassLoader parent) |
658 |
* load classes and resources (after using the supplied parent ClassLoader). |
* load classes and resources (after using the supplied parent ClassLoader). |
659 |
* It will use the supplied <CODE>URLStreamHandlerFactory</CODE> to get the |
* It will use the supplied <CODE>URLStreamHandlerFactory</CODE> to get the |
660 |
* protocol handlers of the supplied URLs. |
* protocol handlers of the supplied URLs. |
|
* @exception SecurityException if the SecurityManager disallows the |
|
|
* creation of a ClassLoader. |
|
|
* @exception SecurityException |
|
661 |
* @param urls Locations that should be searched by this ClassLoader when |
* @param urls Locations that should be searched by this ClassLoader when |
662 |
* resolving Classes or Resources. |
* resolving Classes or Resources. |
663 |
* @param parent The parent class loader used before trying this class |
* @param parent The parent class loader used before trying this class |
664 |
* loader. |
* loader. |
665 |
* @param factory Used to get the protocol handler for the URLs. |
* @param factory Used to get the protocol handler for the URLs. |
666 |
|
* @exception SecurityException if the SecurityManager disallows the |
667 |
|
* creation of a ClassLoader. |
668 |
|
* @exception SecurityException |
669 |
* @see SecureClassLoader |
* @see SecureClassLoader |
670 |
*/ |
*/ |
671 |
public URLClassLoader(URL[] urls, ClassLoader parent, |
public URLClassLoader(URL[] urls, ClassLoader parent, |
764 |
* package is sealed. If the Manifest indicates that the package is sealed |
* package is sealed. If the Manifest indicates that the package is sealed |
765 |
* then the Package will be sealed with respect to the supplied URL. |
* then the Package will be sealed with respect to the supplied URL. |
766 |
* |
* |
|
* @exception IllegalArgumentException If this package name already exists |
|
|
* in this class loader |
|
767 |
* @param name The name of the package |
* @param name The name of the package |
768 |
* @param manifest The manifest describing the specification, |
* @param manifest The manifest describing the specification, |
769 |
* implementation and sealing details of the package |
* implementation and sealing details of the package |
770 |
* @param url the code source url to seal the package |
* @param url the code source url to seal the package |
771 |
|
* @exception IllegalArgumentException If this package name already exists |
772 |
|
* in this class loader |
773 |
* @return the defined Package |
* @return the defined Package |
774 |
*/ |
*/ |
775 |
protected Package definePackage(String name, Manifest manifest, URL url) |
protected Package definePackage(String name, Manifest manifest, URL url) |
1016 |
/** |
/** |
1017 |
* Finds all the resources with a particular name from all the locations. |
* Finds all the resources with a particular name from all the locations. |
1018 |
* |
* |
|
* @exception IOException when an error occurs accessing one of the |
|
|
* locations |
|
1019 |
* @param resourceName the name of the resource to lookup |
* @param resourceName the name of the resource to lookup |
1020 |
* @return a (possible empty) enumeration of URLs where the resource can be |
* @return a (possible empty) enumeration of URLs where the resource can be |
1021 |
* found |
* found |
1022 |
|
* @exception IOException when an error occurs accessing one of the |
1023 |
|
* locations |
1024 |
*/ |
*/ |
1025 |
public Enumeration findResources(String resourceName) |
public Enumeration findResources(String resourceName) |
1026 |
throws IOException |
throws IOException |
1055 |
* |
* |
1056 |
* @param source The codesource that needs the permissions to be accessed |
* @param source The codesource that needs the permissions to be accessed |
1057 |
* @return the collection of permissions needed to access the code resource |
* @return the collection of permissions needed to access the code resource |
1058 |
* @see java.security.SecureClassLoader#getPermissions() |
* @see java.security.SecureClassLoader#getPermissions(CodeSource) |
1059 |
*/ |
*/ |
1060 |
protected PermissionCollection getPermissions(CodeSource source) |
protected PermissionCollection getPermissions(CodeSource source) |
1061 |
{ |
{ |