|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.oti.shared.SharedClassHelperFactoryImpl
public class SharedClassHelperFactoryImpl
Implementation of SharedClassHelperFactory.
SharedClassHelperFactory
Constructor Summary | |
---|---|
SharedClassHelperFactoryImpl()
|
Method Summary | |
---|---|
SharedClassHelper |
findHelperForClassLoader(java.lang.ClassLoader loader)
Utility function which returns a SharedClassHelper for a given ClassLoader. |
SharedClassTokenHelper |
getTokenHelper(java.lang.ClassLoader loader)
Return a SharedClassTokenHelper for a given ClassLoader. |
SharedClassURLClasspathHelper |
getURLClasspathHelper(java.lang.ClassLoader loader,
java.net.URL[] classpath)
Return a SharedClassURLClasspathHelper for a given ClassLoader. |
SharedClassURLHelper |
getURLHelper(java.lang.ClassLoader loader)
Return a SharedClassURLHelper for a given ClassLoader. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedClassHelperFactoryImpl()
Method Detail |
---|
public SharedClassHelper findHelperForClassLoader(java.lang.ClassLoader loader)
SharedClassHelperFactory
Can be used to determine whether a given ClassLoader already has a helper, before calling a getter method.
Returns an existing SharedClassHelper or null.
findHelperForClassLoader
in interface SharedClassHelperFactory
loader
- ClassLoader.
ClassLoader which may or may not have a SharedClassHelper
SharedClassHelper
public SharedClassTokenHelper getTokenHelper(java.lang.ClassLoader loader) throws HelperAlreadyDefinedException, java.security.AccessControlException
SharedClassHelperFactory
Creates a new SharedClassTokenHelper if one cannot be found, otherwise returns existing SharedClassTokenHelper.
Throws a HelperAlreadyDefinedException if the ClassLoader already has a different type of helper.
Throws an AccessControlException if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getTokenHelper
in interface SharedClassHelperFactory
loader
- ClassLoader.
ClassLoader to which this SharedClassTokenHelper will belong
HelperAlreadyDefinedException
java.security.AccessControlException
SharedClassTokenHelper
public SharedClassURLHelper getURLHelper(java.lang.ClassLoader loader) throws HelperAlreadyDefinedException, java.security.AccessControlException
SharedClassHelperFactory
Creates a new SharedClassURLHelper if one cannot be found, otherwise returns existing SharedClassURLHelper.
Throws a HelperAlreadyDefinedException if the ClassLoader already has a different type of helper.
Throws an AccessControlException if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLHelper
in interface SharedClassHelperFactory
loader
- ClassLoader.
ClassLoader to which this SharedClassURLHelper will belong
HelperAlreadyDefinedException
java.security.AccessControlException
SharedClassURLHelper
public SharedClassURLClasspathHelper getURLClasspathHelper(java.lang.ClassLoader loader, java.net.URL[] classpath) throws HelperAlreadyDefinedException, java.security.AccessControlException
SharedClassHelperFactory
Creates a new SharedClassURLClasspathHelper if one cannot be found,
otherwise if the classpath specified matches the classpath of an existing helper, returns existing SharedClassURLClasspathHelper.
Throws a HelperAlreadyDefinedException if the ClassLoader already has a different type of helper OR
if the ClassLoader has a SharedClassURLClasspathHelper with a different classpath.
Throws an AccessControlException if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLClasspathHelper
in interface SharedClassHelperFactory
loader
- ClassLoader.
ClassLoader to which this SharedClassURLClasspathHelper will belongclasspath
- URL[].
The current URL classpath of this ClassLoader
HelperAlreadyDefinedException
java.security.AccessControlException
SharedClassURLClasspathHelper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |