com.ibm.oti.shared

Class SharedClassAbstractHelper

  1. java.lang.Object
  2. extended bycom.ibm.oti.shared.SharedAbstractHelper
  3. extended bycom.ibm.oti.shared.SharedClassAbstractHelper
All implemented interfaces:
SharedClassHelper, SharedHelper
Direct known subclasses:
SharedClassTokenHelperImpl, SharedClassURLClasspathHelperImpl, SharedClassURLHelperImpl

  1. public abstract class SharedClassAbstractHelper
  2. extends SharedAbstractHelper
  3. implements SharedClassHelper
Abstract SharedClassHelper provides common functions and data to class helper subclasses.

Version:
initial
Author:
OTI
See Also:
SharedClassHelper, SharedAbstractHelper

Constructor Summary

Constructor and Description
SharedClassAbstractHelper()

Method Summary

Modifier and Type Method and Description
  1. SharedClassFilter
getSharingFilter()
Return the sharedClassFilter associated with this helper.
  1. boolean
isSharedClassCookie(byte[] classBytes)
Utility function.
  1. void
setSharingFilter(SharedClassFilter filter)
Set the sharedClassFilter for a helper instance.
Methods inherited from class com.ibm.oti.shared.SharedAbstractHelper
getClassLoader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.oti.shared.SharedHelper
getClassLoader

Constructor Detail

SharedClassAbstractHelper

  1. public SharedClassAbstractHelper( )

Method Detail

isSharedClassCookie

  1. public boolean isSharedClassCookie( byte[] classBytes)
Utility function. 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

  1. public void setSharingFilter(SharedClassFilter filter)
Set the sharedClassFilter for a helper instance. Supplying null will remove any filter currently associated with the helper instance.

Specified by:
Parameters:
filter - The filter to use when finding and storing classes.

getSharingFilter

  1. public SharedClassFilter getSharingFilter( )
Return the sharedClassFilter associated with this helper.

Specified by:
Returns:
the filter instance or null if non is associated