|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.oti.shared.SharedAbstractHelperFactory
com.ibm.oti.shared.SharedClassHelperFactoryImpl
public class SharedClassHelperFactoryImpl
Implementation of SharedClassHelperFactory.
SharedClassHelperFactory,
SharedAbstractHelperFactory| 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. |
SharedClassTokenHelper |
getTokenHelper(java.lang.ClassLoader loader,
SharedClassFilter filter)
Return a SharedClassTokenHelper for a given ClassLoader. |
SharedClassURLClasspathHelper |
getURLClasspathHelper(java.lang.ClassLoader loader,
java.net.URL[] classpath)
Return a SharedClassURLClasspathHelper for a given ClassLoader. |
SharedClassURLClasspathHelper |
getURLClasspathHelper(java.lang.ClassLoader loader,
java.net.URL[] classpath,
SharedClassFilter filter)
Return a SharedClassURLClasspathHelper for a given ClassLoader. |
SharedClassURLHelper |
getURLHelper(java.lang.ClassLoader loader)
Return a SharedClassURLHelper for a given ClassLoader. |
SharedClassURLHelper |
getURLHelper(java.lang.ClassLoader loader,
SharedClassFilter filter)
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 SharedClassHelperFactoryloader - ClassLoader.
ClassLoader which may or may not have a SharedClassHelper
SharedClassHelper
public SharedClassTokenHelper getTokenHelper(java.lang.ClassLoader loader,
SharedClassFilter filter)
throws HelperAlreadyDefinedException
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.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getTokenHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassTokenHelper will belongfilter - SharedClassURLFilter.
Specify a filter which limits the classes that are found or stored in the cache
HelperAlreadyDefinedExceptionSharedClassTokenHelper
public SharedClassTokenHelper getTokenHelper(java.lang.ClassLoader loader)
throws HelperAlreadyDefinedException
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.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getTokenHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassTokenHelper will belong
HelperAlreadyDefinedExceptionSharedClassTokenHelper
public SharedClassURLHelper getURLHelper(java.lang.ClassLoader loader,
SharedClassFilter filter)
throws HelperAlreadyDefinedException
SharedClassHelperFactory
Creates a new SharedClassURLHelper if one cannot be found, otherwise returns existing SharedClassURLHelper.
If a new SharedClassHelper is created, the specified SharedClassURLFilter is applied to it. If the filter argument is null, no filter is applied.
Throws a HelperAlreadyDefinedException if the ClassLoader already has a different type of helper.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassURLHelper will belongfilter - SharedClassURLFilter.
Specify a filter which limits the classes that are found or stored in the cache
HelperAlreadyDefinedExceptionSharedClassURLHelper,
SharedClassFilter
public SharedClassURLHelper getURLHelper(java.lang.ClassLoader loader)
throws HelperAlreadyDefinedException
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.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassURLHelper will belong
HelperAlreadyDefinedExceptionSharedClassURLHelper
public SharedClassURLClasspathHelper getURLClasspathHelper(java.lang.ClassLoader loader,
java.net.URL[] classpath,
SharedClassFilter filter)
throws HelperAlreadyDefinedException
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.
If a new SharedClassHelper is created, the specified SharedClassURLFilter is applied to it. If the filter argument is null, no filter is applied.
Throws a HelperAlreadyDefinedException if the ClassLoader already has a different type of helper OR
if the ClassLoader has a SharedClassURLClasspathHelper with a different classpath.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLClasspathHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassURLClasspathHelper will belongclasspath - URL[].
The current URL classpath of this ClassLoaderfilter - SharedClassURLFilter.
Specify a filter which limits the classes that are found or stored in the cache
HelperAlreadyDefinedExceptionSharedClassURLClasspathHelper,
SharedClassFilter
public SharedClassURLClasspathHelper getURLClasspathHelper(java.lang.ClassLoader loader,
java.net.URL[] classpath)
throws HelperAlreadyDefinedException
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.
Returns null if a SecurityManager is installed and there is no
SharedClassPermission for the ClassLoader specified.
getURLClasspathHelper in interface SharedClassHelperFactoryloader - ClassLoader.
ClassLoader to which this SharedClassURLClasspathHelper will belongclasspath - URL[].
The current URL classpath of this ClassLoader
HelperAlreadyDefinedExceptionSharedClassURLClasspathHelper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||