public class DefaultThreadContextDecoratorChain extends Object implements ThreadContextDecoratorChain
Constructor and Description |
---|
DefaultThreadContextDecoratorChain() |
Modifier and Type | Method and Description |
---|---|
void |
addDecorator(ThreadContextDecorator decorator)
Adds a
ThreadContextDecorator . |
List<ThreadContextDecorator> |
getDecoratorsOrderedByPriority()
Returns all decorators (including default decorators) by priority.
|
static List<ThreadContextDecorator> |
getDefaultDecorators()
Returns all registered default decorators by priority.
|
static void |
registerDefaultDecorator(ThreadContextDecorator decorator)
Registers a default
ThreadContextDecorator . |
void |
removeDecorator(int decoratorPriority)
Removes a
ThreadContextDecorator by its priority. |
void |
removeDefaultDecorators()
Removes the default decorators from this chain.
|
static void |
unregisterDefaultDecorator(int decoratorPriority)
Unregisters a default
ThreadContextDecorator by its priority. |
public static void registerDefaultDecorator(@Nonnull ThreadContextDecorator decorator)
ThreadContextDecorator
.decorator
- The default decorator to be added.public static void unregisterDefaultDecorator(int decoratorPriority)
ThreadContextDecorator
by its priority.decoratorPriority
- The priority of the decorator to be removed.public static List<ThreadContextDecorator> getDefaultDecorators()
public void addDecorator(@Nonnull ThreadContextDecorator decorator)
ThreadContextDecorator
.addDecorator
in interface ThreadContextDecoratorChain
decorator
- The default decorator to be added.public void removeDecorator(int decoratorPriority)
ThreadContextDecorator
by its priority.removeDecorator
in interface ThreadContextDecoratorChain
decoratorPriority
- The priority of the decorator to be removed.public void removeDefaultDecorators()
@Nonnull public List<ThreadContextDecorator> getDecoratorsOrderedByPriority()
getDecoratorsOrderedByPriority
in interface ThreadContextDecoratorChain
Copyright © 2019 SAP SE. All rights reserved.