|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bcel.verifier.VerifierFactory
public class VerifierFactory
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.
Verifier
Field Summary | |
---|---|
private static java.util.Map |
hashMap
The HashMap that holds the data about the already-constructed Verifier instances. |
private static java.util.List |
observers
The VerifierFactoryObserver instances that observe the VerifierFactory. |
Constructor Summary | |
---|---|
private |
VerifierFactory()
The VerifierFactory is not instantiable. |
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. |
private static void |
notify(java.lang.String fully_qualified_classname)
Notifies the observers of a newly generated Verifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.Map hashMap
private static java.util.List observers
Constructor Detail |
---|
private VerifierFactory()
Method Detail |
---|
public static Verifier getVerifier(java.lang.String fully_qualified_classname)
private static void notify(java.lang.String fully_qualified_classname)
public static Verifier[] getVerifiers()
public static void attach(VerifierFactoryObserver o)
public static void detach(VerifierFactoryObserver o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |