Class SharedClassAbstractHelper

    • Constructor Detail

      • SharedClassAbstractHelper

        public SharedClassAbstractHelper()
    • Method Detail

      • isSharedClassCookie

        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

        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.