Interface SharedClassHelperFactory


public interface SharedClassHelperFactory

SharedClassHelperFactory provides an interface that is used to create various types of SharedClassHelper for ClassLoaders.

ClassLoaders and each type of SharedClassHelpers have a one-to-one relationship.

There are 3 different types of SharedClassHelper:
  1. SharedClassTokenHelper
    Stores and finds classes using a String token generated by the ClassLoader. For use by ClassLoaders that require complete control over cache contents.
  2. SharedClassURLHelper
    Stores and finds classes using a URL location. Any URL can be used to store or find classes.
    For use by ClassLoaders that do not have the concept of a classpath, which load classes from multiple locations.
    Classes can only be stored using jar/zip or file URLs. Classes are automatically kept up-to-date by the cache.
    Classes stored using SharedClassURLClasspathHelper can be found by using this helper, and vice versa.
  3. SharedClassURLClasspathHelper
    Stores and finds classes using a URL classpath. URLs can be appended to the classpath at any time. The classpath can also be modified under certain circumstances (see SharedClassURLClasspathHelper javadoc).
    For use by ClassLoaders that load classes by using a URL classpath.
    Classes can only be stored using jar/zip or file URLs. Classes are automatically kept up-to-date by the cache.
    Classes stored using SharedClassURLHelper can be found using this helper, and vice versa.
See Also: