public class WidgetDescriptorHelper
extends java.lang.Object
The built-in set of legacy widgets (FILL-IN, TEXT, BROWSE, etc.) can be extended with 3rd party widget implementations. The implementations will typically exist in separate Java projects, outside of the FWD project. This class provides loading and caching of widget descriptors.
Modifier and Type | Field and Description |
---|---|
private static ContextLocal<java.util.List<WidgetDescriptor>> |
cachedDescriptors
Loaded descriptors cached in the session.
|
private static java.lang.String |
CFG_NODE
Root server directory node to load the widget descriptors from.
|
private static java.util.logging.Logger |
LOG
Logger
|
Constructor and Description |
---|
WidgetDescriptorHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<WidgetDescriptor> |
getDescriptors()
Loads widget descriptors from server directory, caches them and returns them back.
|
private static java.util.List<WidgetDescriptor> |
loadFromDirectory()
Loads widget descriptors from FWD server directory.
|
private static java.util.logging.Logger LOG
private static final java.lang.String CFG_NODE
private static ContextLocal<java.util.List<WidgetDescriptor>> cachedDescriptors
public static java.util.List<WidgetDescriptor> getDescriptors()
private static java.util.List<WidgetDescriptor> loadFromDirectory()