Package com.sun.enterprise.module.impl
Class ClassLoaderFacade
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.sun.enterprise.module.impl.ClassLoaderFacade
- All Implemented Interfaces:
Closeable
,AutoCloseable
Facade for
ModuleClassLoader
to only expose public classes.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final URL[]
private ModuleClassLoader
-
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderFacade
(ModuleClassLoader privateLoader) Creates a new instance of ClassLoaderFacade -
Method Summary
Modifier and TypeMethodDescriptionvoid
dumpState
(PrintStream writer) protected void
finalize()
protected Class
findResource
(String name) (package private) URL
findResourceDirect
(String name) Works likefindResource(String)
but only looks at this module, without delegating to ancestors.findResources
(String name) (package private) Class
Tries to find a class from theModuleClassLoader
that this facade is wrapping, without doing further delegation to ancestors.String[]
(package private) boolean
matchExportedPackage
(String name) void
setPublicPkgs
(String[] publicPkgs) toString()
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
EMPTY_URLS
-
publicPkgs
-
publicSet
-
privateLoader
-
classesLoaded
private int classesLoaded
-
-
Constructor Details
-
ClassLoaderFacade
Creates a new instance of ClassLoaderFacade
-
-
Method Details
-
finalize
-
setPublicPkgs
-
getPublicPkgs
-
matchExportedPackage
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
findResources
- Overrides:
findResources
in classURLClassLoader
- Throws:
IOException
-
findResource
- Overrides:
findResource
in classURLClassLoader
-
getClass
Tries to find a class from theModuleClassLoader
that this facade is wrapping, without doing further delegation to ancestors.- Throws:
ClassNotFoundException
-
findResourceDirect
Works likefindResource(String)
but only looks at this module, without delegating to ancestors. -
dumpState
-
toString
-