public abstract class ALDBatchOutputManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug
For internal debugging purposes
|
protected HashMap<Class<?>,String> |
mapTable
Hashtable containing mappings of datatypes to provider classes.
|
private static String |
providedOutputClassesMethodName
Name of the method which returns all classes supported.
|
Modifier | Constructor and Description |
---|---|
protected |
ALDBatchOutputManager()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALDBatchOutputSummarizer |
getProvider(Class<?> cl,
Class<?> interfaceRequired)
Method to return an instance of the batch output provider of the
requested class.
|
protected static HashMap<Class<?>,String> |
initMapTable(Class<?> interfaceRequired)
Method to initialize the hashmap which registers batch output providers.
|
boolean |
providerAvailable(Class<?> cl)
Check if a provider has registered for the given class.
|
protected static boolean debug
private static String providedOutputClassesMethodName
protected static HashMap<Class<?>,String> initMapTable(Class<?> interfaceRequired)
interfaceRequired
- Interface of which providers are registered.public boolean providerAvailable(Class<?> cl)
Note that this function does not try to instantiate a provider, thus, just a flat check is done and on lateron requesting a provider object errors are still possible.
cl
- Requested class.public ALDBatchOutputSummarizer getProvider(Class<?> cl, Class<?> interfaceRequired) throws ALDBatchIOManagerException
The provider is required to implement the requested interface
interfaceRequired
(which by itself has to implement
ALDBatchOutputSummarizer
).
cl
- Class to get a provider for.interfaceRequired
- Interface provider should implement.ALDBatchIOManagerException
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.