- java.lang.Object
-
- com.ibm.oti.shared.SharedAbstractHelper
-
- com.ibm.oti.shared.SharedClassAbstractHelper
-
- All Implemented Interfaces:
SharedClassHelper
,SharedHelper
public abstract class SharedClassAbstractHelper extends SharedAbstractHelper implements SharedClassHelper
SharedClassAbstractHelper provides common functions and data to class helper subclasses.- See Also:
SharedClassHelper
,SharedAbstractHelper
-
-
Constructor Summary
Constructors Constructor Description SharedClassAbstractHelper()
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedClassFilter
getSharingFilter()
Returns the SharedClassFilter associated with this helper.boolean
isSharedClassCookie(byte[] classBytes)
Determines whether a byte array being passed to defineClass is a class found in the shared class cache, or a class found locally.void
setSharingFilter(SharedClassFilter filter)
Sets the SharedClassFilter for a helper instance.-
Methods declared in class com.ibm.oti.shared.SharedAbstractHelper
getClassLoader
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.oti.shared.SharedHelper
getClassLoader
-
-
-
-
Method Detail
-
isSharedClassCookie
public boolean isSharedClassCookie(byte[] classBytes)
Determines whether a byte array being passed to defineClass is a class found in the shared class cache, or a class found locally.- Parameters:
classBytes
- a potential shared class cookie- Returns:
- true if bytes are a cookie
-
setSharingFilter
public void setSharingFilter(SharedClassFilter filter)
Sets the SharedClassFilter for a helper instance.Supplying null removes any filter that is currently associated with the helper instance.
- Specified by:
setSharingFilter
in interfaceSharedClassHelper
- Parameters:
filter
- the filter to use when finding and storing classes
-
getSharingFilter
public SharedClassFilter getSharingFilter()
Returns the SharedClassFilter associated with this helper.- Specified by:
getSharingFilter
in interfaceSharedClassHelper
- Returns:
- the filter instance, or null if none is associated
-
-