Class SharedClassAbstractHelper

    • Constructor Detail

      • SharedClassAbstractHelper

        public SharedClassAbstractHelper()
        Constructs a new instance of this class.
    • 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 interface SharedClassHelper
        Parameters:
        filter - the filter to use when finding and storing classes