BCEL's class file verifier "JustIce"

de.fub.bytecode.verifier
Class VerifierFactory

java.lang.Object
  |
  +--de.fub.bytecode.verifier.VerifierFactory

public class VerifierFactory
extends java.lang.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.

Version:
$Id: VerifierFactory.java,v 1.17 2001/09/13 22:40:04 ehaase Exp $
Author:
Enver Haase

Method Summary
static void attach(VerifierFactoryObserver o)
          Adds the VerifierFactoryObserver o to the list of observers.
static void detach(VerifierFactoryObserver o)
          Removes the VerifierFactoryObserver o from the list of observers.
static Verifier getVerifier(java.lang.String fully_qualified_classname)
          Returns the (only) verifier responsible for the class with the given name.
static Verifier[] getVerifiers()
          Returns all Verifier instances created so far.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVerifier

public static Verifier getVerifier(java.lang.String fully_qualified_classname)
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.

attach

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

detach

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

(c) Enver Haase 2001, released under the FSF's "GPL version 2" license.