Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_DECORATOR_HEAP_KEY
Heap Key for the global decorator(s).
|
Constructor and Description |
---|
GlobalDecorator(Decorator parent,
org.forgerock.json.JsonValue config,
String... reservedFieldNames)
Builds a new GlobalDecorator using given decorators JSON object element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<?> type)
Returns
true if this decorator is compatible with the provided component type. |
Object |
decorate(Object delegate,
org.forgerock.json.JsonValue ignored,
Context context)
Decorate the given object instance with the previously declared set of decorations instead of the provided one.
|
public static final String GLOBAL_DECORATOR_HEAP_KEY
public GlobalDecorator(Decorator parent, org.forgerock.json.JsonValue config, String... reservedFieldNames)
parent
- the parent global decorator from which additional global
decorators may be inherited. May be null
config
- a JSON configurationreservedFieldNames
- the names of reserved top level fields in the config which
should not be parsed as global decoratorspublic boolean accepts(Class<?> type)
Decorator
true
if this decorator is compatible with the provided component type. Note that a return value
of true
does not necessarily indicate that decoration will be performed since it may also depend on other
factorspublic Object decorate(Object delegate, org.forgerock.json.JsonValue ignored, Context context) throws HeapException
decorate
in interface Decorator
delegate
- instance to decorateignored
- ignored (may probably be null
)context
- Context of the heap object to be decoratedHeapException
- if one of the decorator failed to decorate the instanceCopyright © 2025 Open Identity Platform Community. All rights reserved.