public abstract class IlrValueInfoFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IlrValueInfoFactory |
parent
The parent factory
|
| Modifier | Constructor and Description |
|---|---|
protected |
IlrValueInfoFactory(IlrValueInfoFactory parent)
Constructs a value info factory, with its parent factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected static IlrValueInfo |
createValueInfo(java.lang.String key,
java.lang.Class descClass)
Creates a value info.
|
static IlrValueInfo |
findValueInfo(java.lang.String key,
IlrVocabulary vocabulary,
java.lang.ClassLoader classLoader)
Loads a value info into the value info hierarchy based on the key that defines that value info.
|
static IlrValueInfo |
findValueInfo(java.lang.String key,
IlrVocabulary vocabulary,
java.lang.ClassLoader classLoader,
boolean logError)
Loads a value info into the value info hierarchy based on the key that defines that value info.
|
static IlrValueInfoFactory |
getFactory()
Returns the current value info factory.
|
static IlrBRLLogger |
getLogger()
This method retrieves a logger that may have been assigned to this factory.
|
protected static java.lang.Class |
loadClass(java.lang.String className,
java.lang.ClassLoader classLoader)
Loads a class by looking first in the class loader given in parameter and then in the
IlrValueInfoFactory class loader. |
protected abstract IlrValueInfo |
loadValueInfo(java.lang.String key,
IlrVocabulary vocabulary,
java.lang.ClassLoader classLoader)
Loads a value info based on the key that defines that value info,
through the factory implementation.
|
static void |
setFactory(IlrValueInfoFactory factory)
Sets the new current value info factory.
|
static void |
setLogger(IlrBRLLogger log)
Sets a logger with this factory.
|
protected final IlrValueInfoFactory parent
protected IlrValueInfoFactory(IlrValueInfoFactory parent)
parent - The parent factory.public static IlrValueInfoFactory getFactory()
public static void setFactory(IlrValueInfoFactory factory)
factory - The value info factory.public static IlrBRLLogger getLogger()
public static void setLogger(IlrBRLLogger log)
log - The logger to be associated with this factory.protected static IlrValueInfo createValueInfo(java.lang.String key, java.lang.Class descClass)
key - The key of the value descriptor.descClass - The class to instantiate.protected static java.lang.Class loadClass(java.lang.String className,
java.lang.ClassLoader classLoader)
IlrValueInfoFactory class loader.className - The class name.classLoader - The class loader into which the class is loaded.null if the class does not exist.protected abstract IlrValueInfo loadValueInfo(java.lang.String key, IlrVocabulary vocabulary, java.lang.ClassLoader classLoader)
key - The key that represents the value info.vocabulary - The vocabulary.classLoader - The class loader.public static IlrValueInfo findValueInfo(java.lang.String key, IlrVocabulary vocabulary, java.lang.ClassLoader classLoader)
key - The key that represents the value info. An error is logged if the value info is not
found.vocabulary - The vocabulary.classLoader - The class loader.public static IlrValueInfo findValueInfo(java.lang.String key, IlrVocabulary vocabulary, java.lang.ClassLoader classLoader, boolean logError)
key - The key that represents the value info.vocabulary - The vocabulary.classLoader - The class loader.logError - true to log an error if the value info is not found in the factory hierarchy.© Copyright IBM Corp. 1987, 2017