Interface ThreadContextDecoratorChain
- All Known Implementing Classes:
DefaultThreadContextDecoratorChain
public interface ThreadContextDecoratorChain
Chain of
ThreadContextDecorator
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDecorator
(ThreadContextDecorator decorator) Adds aThreadContextDecorator
.Returns all decorators (including default decorators) by priority.void
removeDecorator
(int decoratorPriority) Removes aThreadContextDecorator
by its priority.
-
Method Details
-
addDecorator
Adds aThreadContextDecorator
.- Parameters:
decorator
- The default decorator to be added.
-
removeDecorator
void removeDecorator(int decoratorPriority) Removes aThreadContextDecorator
by its priority.- Parameters:
decoratorPriority
- The priority of the decorator to be removed.
-
getDecoratorsOrderedByPriority
Returns all decorators (including default decorators) by priority.- Returns:
- The list of decorators.
-