Class VerifierFactory

java.lang.Object
org.apache.bcel.verifier.VerifierFactory

public class VerifierFactory extends Object
This class produces instances of the Verifier class. Its purpose is to make sure that they are singleton instances with respect to the class name they operate on. That means, for every class (represented by a unique fully qualified class name) there is exactly one Verifier.
See Also:
  • Method Details

    • attach

      public static void attach(VerifierFactoryObserver o)
      Adds the VerifierFactoryObserver o to the list of observers.
    • clear

      public static void clear()
      Clears the factory.
      Since:
      6.6.2
    • detach

      public static void detach(VerifierFactoryObserver o)
      Removes the VerifierFactoryObserver o from the list of observers.
    • getVerifier

      public static Verifier getVerifier(String fullyQualifiedClassName)
      Returns the (only) verifier responsible for the class with the given name. Possibly a new Verifier object is transparently created.
      Returns:
      the (only) verifier responsible for the class with the given name.
    • getVerifiers

      public static Verifier[] getVerifiers()
      Returns all Verifier instances created so far. This is useful when a Verifier recursively lets the VerifierFactory create other Verifier instances and if you want to verify the transitive hull of referenced class files.