public abstract class IlrValueEditorFactory
extends java.lang.Object
ilog.rules.brl.value.descriptor.IlrValueDescriptor.
The default factory can be extended in order to load the value descriptor in a different way.IlrValueDescriptor| Modifier and Type | Class and Description |
|---|---|
static class |
IlrValueEditorFactory.UIPlatform
Represents an user interface platform
|
| Modifier and Type | Field and Description |
|---|---|
protected IlrValueEditorFactory |
parent
The parent factory.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IlrValueEditorFactory(IlrValueEditorFactory parent)
Constructs a value editor factory with its parent factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected static IlrValueEditor |
createValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.Class descClass)
Creates a value editor.
|
static IlrValueEditor |
findValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.ClassLoader classLoader)
Loads a value editor into the value editor hierarchy, based on the key that defines that value editor.
|
static IlrValueEditor |
findValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.ClassLoader classLoader,
boolean logError)
Loads a value editor into the value editor hierarchy, based on the key that defines that value editor.
|
static IlrValueEditor |
findValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.ClassLoader classLoader,
IlrValueEditorFactory.UIPlatform platform)
Loads a value editor into the value editor hierarchy, based on the key that defines that value editor.
|
static IlrValueEditor |
findValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.ClassLoader classLoader,
IlrValueEditorFactory.UIPlatform platform,
boolean logError)
Loads a value editor into the value editor hierarchy, based on the key that defines that value editor.
|
static IlrValueEditorFactory |
getFactory()
Returns the current value editor 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)
Tries to load a class before in the specified class loader and after in the
IlrValueEditorFactory class loader. |
protected abstract IlrValueEditor |
loadValueEditor(java.lang.String key,
IlrValueDescriptor valueDescriptor,
java.lang.ClassLoader classLoader)
Loads a value editor based on the key that defines that value editor according to the factory implementation.
|
static void |
setFactory(IlrValueEditorFactory factory)
Sets the new current factory.
|
static void |
setLogger(IlrBRLLogger log)
This method allows setting a logger to this factory.
|
protected IlrValueEditorFactory parent
protected IlrValueEditorFactory(IlrValueEditorFactory parent)
parent - The parent factory.public static IlrBRLLogger getLogger()
public static void setLogger(IlrBRLLogger log)
log - the logger to be associated to this factory.public static IlrValueEditorFactory getFactory()
public static void setFactory(IlrValueEditorFactory factory)
factory - The new current factory.protected static IlrValueEditor createValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.Class descClass)
ilog.rules.brl.value.descriptor.IlrValueDescriptor.key - The key of the value editor.valueDescriptor - The value descriptor associated with the value editor.descClass - The class to instantiate.protected static java.lang.Class loadClass(java.lang.String className,
java.lang.ClassLoader classLoader)
IlrValueEditorFactory class loader.className - The class name.classLoader - The class loader into which we try to load the class.null if the class does not exist.protected abstract IlrValueEditor loadValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.ClassLoader classLoader)
key - The key that represent the value editor.valueDescriptor - The associated value descriptor.classLoader - The class loader.public static IlrValueEditor findValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.ClassLoader classLoader)
key - The key that represents the value editor. An error is logged if the value editor is not found.valueDescriptor - The associated value descriptor.classLoader - The class loader.public static IlrValueEditor findValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.ClassLoader classLoader, boolean logError)
key - The key that represents the value editor.valueDescriptor - The associated value descriptor.classLoader - The class loader.logError - true to log an error if the value editor is not found in the factory hierarchypublic static IlrValueEditor findValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.ClassLoader classLoader, IlrValueEditorFactory.UIPlatform platform)
key - The key that represents the value editor.valueDescriptor - The associated value descriptor.classLoader - The class loader.platform - The expected UI platform.public static IlrValueEditor findValueEditor(java.lang.String key, IlrValueDescriptor valueDescriptor, java.lang.ClassLoader classLoader, IlrValueEditorFactory.UIPlatform platform, boolean logError)
key - The key that represents the value editor.valueDescriptor - The associated value descriptor.classLoader - The class loader.platform - The expected UI platform.logError - true to log an error if the value editor is not found in the factory hierarchy© Copyright IBM Corp. 1987, 2017