Class NoOpGlobalDecorator
java.lang.Object
org.forgerock.openig.decoration.global.NoOpGlobalDecorator
- All Implemented Interfaces:
Decorator
A Decorator which does nothing but act as if it had decorated the object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this decorator is compatible with the provided component type.Decorates the provideddelegateinstance with the provideddecoratorConfigconfiguration.
-
Constructor Details
-
NoOpGlobalDecorator
public NoOpGlobalDecorator()
-
-
Method Details
-
accepts
Description copied from interface:DecoratorReturnstrueif this decorator is compatible with the provided component type. Note that a return value oftruedoes not necessarily indicate that decoration will be performed since it may also depend on other factors -
decorate
public DecorationHandle decorate(Object delegate, JsonValue decoratorConfig, Context context) throws HeapException Description copied from interface:DecoratorDecorates the provideddelegateinstance with the provideddecoratorConfigconfiguration. The implementation should take care of not changing the base type of the delegate.- Specified by:
decoratein interfaceDecorator- Parameters:
delegate- instance to be decorateddecoratorConfig- the decorator configuration to applycontext- contextual information of the decorated instance- Returns:
- a handle of the decoration that was setup, never
null. - Throws:
HeapException- when decoration fails
-