com.ibm.oti.shared
Interface SharedClassFilter


public interface SharedClassFilter

Interface which allows users of a Helper API to filter which classes are found and stored in the cache The user should provide a class which implements the interface in which the functions return true or false and then pass an instance of this class to setSharingFilter() in a shared class helper.

See Also:
SharedClassURLHelper, SharedClassTokenHelper, SharedClassURLClasspathHelper

Method Summary
 boolean acceptFind(java.lang.String className)
          Tests if the helper should try to find a specified class in the shared class cache
 boolean acceptStore(java.lang.String className)
          Tests if a specified class should be stored in the shared class cache
 

Method Detail

acceptStore

boolean acceptStore(java.lang.String className)
Tests if a specified class should be stored in the shared class cache

Parameters:
className - String The fully-qualified name of the class, with the package and class names separated by '.'
Returns:
boolean True if the class should be stored in the class cache, false otherwise.

acceptFind

boolean acceptFind(java.lang.String className)
Tests if the helper should try to find a specified class in the shared class cache

Parameters:
className - String The fully-qualified name of the class, with the package and class names separated by '.'
Returns:
boolean True if the helper should try to find the class, false otherwise