public class VerifierFactory
extends java.lang.Object
Verifier
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,Verifier> |
hashMap
The HashMap that holds the data about the already-constructed Verifier instances.
|
private static java.util.List<VerifierFactoryObserver> |
observers
The VerifierFactoryObserver instances that observe the VerifierFactory.
|
Modifier | Constructor and Description |
---|---|
private |
VerifierFactory()
The VerifierFactory is not instantiable.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private static final java.util.Map<java.lang.String,Verifier> hashMap
private static final java.util.List<VerifierFactoryObserver> observers
private VerifierFactory()
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)