org.ogf.graap.wsag.wsrf.security
Class MerlinClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.ogf.graap.wsag.wsrf.security.MerlinClassLoader

public class MerlinClassLoader
extends ClassLoader

WSAG4JClassLoader

Author:
Oliver Waeldrich

Constructor Summary
MerlinClassLoader(ClassLoader loader)
          Use the specified class loader as standard ClassLoader.
 
Method Summary
 void clearAssertionStatus()
           
 boolean equals(Object obj)
          
 URL getResource(String name)
           
 InputStream getResourceAsStream(String name)
           
 Enumeration<URL> getResources(String name)
           
 int hashCode()
          
 Class<?> loadClass(String name)
           
 void setClassAssertionStatus(String className, boolean enabled)
          
 void setDefaultAssertionStatus(boolean enabled)
          
 void setPackageAssertionStatus(String packageName, boolean enabled)
          
 
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setSigners
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MerlinClassLoader

public MerlinClassLoader(ClassLoader loader)
Use the specified class loader as standard ClassLoader. Only resource resolving is customized by WSAG4J resource lookup.

Parameters:
loader - the class loader to use
Method Detail

getResource

public URL getResource(String name)
Overrides:
getResource in class ClassLoader
Parameters:
name -
Returns:

getResourceAsStream

public InputStream getResourceAsStream(String name)
Overrides:
getResourceAsStream in class ClassLoader
Parameters:
name -
Returns:
See Also:
ClassLoader.getResourceAsStream(java.lang.String)

clearAssertionStatus

public void clearAssertionStatus()
Overrides:
clearAssertionStatus in class ClassLoader
See Also:
ClassLoader.clearAssertionStatus()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Overrides:
getResources in class ClassLoader
Parameters:
name -
Returns:
Throws:
IOException
See Also:
ClassLoader.getResources(java.lang.String)

loadClass

public Class<?> loadClass(String name)
                   throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Parameters:
name -
Returns:
Throws:
ClassNotFoundException
See Also:
ClassLoader.loadClass(java.lang.String)

setClassAssertionStatus

public void setClassAssertionStatus(String className,
                                    boolean enabled)

Overrides:
setClassAssertionStatus in class ClassLoader
See Also:
ClassLoader.setClassAssertionStatus(java.lang.String, boolean)

setDefaultAssertionStatus

public void setDefaultAssertionStatus(boolean enabled)

Overrides:
setDefaultAssertionStatus in class ClassLoader
See Also:
ClassLoader.setDefaultAssertionStatus(boolean)

setPackageAssertionStatus

public void setPackageAssertionStatus(String packageName,
                                      boolean enabled)

Overrides:
setPackageAssertionStatus in class ClassLoader
See Also:
ClassLoader.setPackageAssertionStatus(java.lang.String, boolean)


Copyright © 2008-2012. All Rights Reserved.