Class AbstractHandlerAndFilterDecorator
java.lang.Object
org.forgerock.openig.decoration.helper.AbstractDecorator
org.forgerock.openig.decoration.helper.AbstractHandlerAndFilterDecorator
- All Implemented Interfaces:
Decorator
@Deprecated(since="7.1")
public abstract class AbstractHandlerAndFilterDecorator
extends AbstractDecorator
Deprecated.
An AbstractHandlerAndFilterDecorator is the base implementation for decorators working only on
Filter
and
Handler
.
Implementors just have to implement the dedicated decorateFilter(Filter, JsonValue, Context)
and decorateHandler(Handler, JsonValue, Context)
for decorating Filter and Handler respectively.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Deprecated.Forces to give the name of the decorator. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Deprecated.Returnstrue
if this decorator is compatible with the provided component type.final DecorationHandle
Deprecated.Decorates the provideddelegate
instance with the provideddecoratorConfig
configuration.protected abstract DecorationHandle
decorateFilter
(Filter delegate, JsonValue decoratorConfig, Context context) Deprecated.protected abstract DecorationHandle
decorateHandler
(Handler delegate, JsonValue decoratorConfig, Context context) Deprecated.Methods inherited from class org.forgerock.openig.decoration.helper.AbstractDecorator
getLogger
-
Constructor Details
-
AbstractHandlerAndFilterDecorator
Deprecated.Forces to give the name of the decorator.- Parameters:
name
- The name of the decorator.
-
-
Method Details
-
accepts
Deprecated.Description copied from interface:Decorator
Returnstrue
if this decorator is compatible with the provided component type. Note that a return value oftrue
does not necessarily indicate that decoration will be performed since it may also depend on other factors- Parameters:
type
- type under test- Returns:
true
if the decorator can decorate instance of the given type,false
otherwise.
-
decorate
public final DecorationHandle decorate(Object delegate, JsonValue decoratorConfig, Context context) throws HeapException Deprecated.Description copied from interface:Decorator
Decorates the provideddelegate
instance with the provideddecoratorConfig
configuration. The implementation should take care of not changing the base type of the delegate.- 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
-
decorateHandler
protected abstract DecorationHandle decorateHandler(Handler delegate, JsonValue decoratorConfig, Context context) throws HeapException Deprecated.- Parameters:
delegate
- Handler instance to be decorateddecoratorConfig
- the decorator configuration to applycontext
- contextual information of the decorated instance- Returns:
- a handle to the decoration
- Throws:
HeapException
- when decoration fails
-
decorateFilter
protected abstract DecorationHandle decorateFilter(Filter delegate, JsonValue decoratorConfig, Context context) throws HeapException Deprecated.- Parameters:
delegate
- Filter instance to be decorateddecoratorConfig
- the decorator configuration to applycontext
- contextual information of the decorated instance- Returns:
- a handle to the decoration
- Throws:
HeapException
- when decoration fails
-
AbstractDecorator
as a replacement along with the class service/factory.