|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Internal interface that ClassLoader
implementations may
optionally implement to support the auto-reload functionality of
StandardLoader
.
Method Summary | |
void |
addAllowed(java.lang.String name)
Add a new fully qualified class or resource name to which access will be allowed, even if the class or resource name would otherwise match one of the restricted patterns. |
void |
addRepository(java.lang.String repository)
Add a new repository to the set of places this ClassLoader can look for classes to be loaded. |
void |
addRestricted(java.lang.String prefix)
Add a fully qualified class or resource name prefix that, if it matches the name of a requested class or resource, will cause access to that class or resource to fail (unless the complete name is on the allowed list). |
void |
addSystem(java.lang.String prefix)
Add a fully qualified class or resource name prefix that, if it matches the name of a requested class or resource, will cause access to that class or resource to be attempted in the system class loader only (bypassing the repositories defined in this class loader). |
java.lang.String[] |
findAllowed()
Return a String array of the allowed class or resource name list for this class loader. |
java.lang.String[] |
findRepositories()
Return a String array of the current repositories for this class loader. |
java.lang.String[] |
findRestricted()
Return a String array of the restricted class or resource name prefixes for this class loader. |
java.lang.String[] |
findSystem()
Return a Striong array of the sytsem class or resource name prefixes for this class loader. |
boolean |
modified()
Have one or more classes or resources been modified so that a reload is appropriate? |
Method Detail |
public void addAllowed(java.lang.String name)
name
- Class or resource name to allow access forpublic void addRepository(java.lang.String repository)
repository
- Name of a source of classes to be loaded, such as a
directory pathname, a JAR file pathname, or a ZIP file pathnamejava.lang.IllegalArgumentException
- if the specified repository is
invalid or does not existpublic void addRestricted(java.lang.String prefix)
prefix
- The restricted prefixpublic void addSystem(java.lang.String prefix)
java.
prefix is defined as a system prefix.prefix
- The system prefixpublic java.lang.String[] findAllowed()
public java.lang.String[] findRepositories()
public java.lang.String[] findRestricted()
public java.lang.String[] findSystem()
public boolean modified()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |