Class AvailableClassFilter

  • All Implemented Interfaces:
    StoredClassFilter

    public class AvailableClassFilter
    extends java.lang.Object
    implements StoredClassFilter
    Filter that accepts only StoredClass instances whose corresponding Java class is currently known.
    • Constructor Summary

      Constructors 
      Constructor Description
      AvailableClassFilter()
      Will accept only classes that are known to the classloader that loaded this class.
      AvailableClassFilter​(java.lang.ClassLoader loader)
      Will accept only classes that are known to the given classloader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(StoredClass storedClass)
      Will accept only classes whose corresponding platform class is known to the configured classloader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvailableClassFilter

        public AvailableClassFilter()
        Will accept only classes that are known to the classloader that loaded this class.
      • AvailableClassFilter

        public AvailableClassFilter​(java.lang.ClassLoader loader)
        Will accept only classes that are known to the given classloader.
        Parameters:
        loader - The classloader to check class names against
    • Method Detail

      • accept

        public boolean accept​(StoredClass storedClass)
        Will accept only classes whose corresponding platform class is known to the configured classloader.
        Specified by:
        accept in interface StoredClassFilter
        Parameters:
        storedClass - The class instance to be checked
        Returns:
        true if the corresponding platform class is known to the configured classloader, false otherwise