Class SharedClassAbstractHelper

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:
  • Constructor Details

    • SharedClassAbstractHelper

      public SharedClassAbstractHelper()
      Constructs a new instance of this class.
  • Method Details

    • 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 interface SharedClassHelper
      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 interface SharedClassHelper
      Returns:
      the filter instance, or null if none is associated