protected HashMap<String, String> notFoundResources =
new LinkedHashMap<String, String>() {
private static final long serialVersionUID = 1L;
+ @Override
protected boolean removeEldestEntry(
Map.Entry<String, String> eldest) {
return size() > 1000;
/**
* Render a String representation of this object.
*/
+ @Override
public String toString() {
StringBuilder sb = new StringBuilder("WebappClassLoader\r\n");
/**
* Add the specified URL to the classloader.
*/
+ @Override
protected void addURL(URL url) {
super.addURL(url);
hasExternalRepositories = true;
*
* @exception ClassNotFoundException if the class was not found
*/
+ @Override
public Class<?> findClass(String name) throws ClassNotFoundException {
if (log.isDebugEnabled())
*
* @param name Name of the resource to be found
*/
+ @Override
public URL findResource(final String name) {
if (log.isDebugEnabled())
*
* @exception IOException if an input/output error occurs
*/
+ @Override
public Enumeration<URL> findResources(String name) throws IOException {
if (log.isDebugEnabled())
*
* @param name Name of the resource to return a URL for
*/
+ @Override
public URL getResource(String name) {
if (log.isDebugEnabled())
*
* @param name Name of the resource to return an input stream for
*/
+ @Override
public InputStream getResourceAsStream(String name) {
if (log.isDebugEnabled())
*
* @exception ClassNotFoundException if the class was not found
*/
+ @Override
public Class<?> loadClass(String name) throws ClassNotFoundException {
return (loadClass(name, false));
*
* @exception ClassNotFoundException if the class was not found
*/
+ @Override
public synchronized Class<?> loadClass(String name, boolean resolve)
throws ClassNotFoundException {
* @param codeSource where the code was loaded from
* @return PermissionCollection for CodeSource
*/
+ @Override
protected PermissionCollection getPermissions(CodeSource codeSource) {
String codeUrl = codeSource.getLocation().toString();
* along with any URLs subsequently appended by the addURL() method.
* @return the search path of URLs for loading classes and resources.
*/
+ @Override
public URL[] getURLs() {
if (repositoryURLs != null) {