public interface RequestObserverChainManager
RequestObservers.| Modifier and Type | Method and Description |
|---|---|
Deque<RequestObserver> |
manageObserverChain(Deque<RequestObserver> observers,
Class<? extends RequestObserver> expectedObserverType)
Manages observer chain.
|
int |
priotity()
Defines priority of observer service which specifies in which order will be
#manageObserverChain(Collection)
method applied on collection of request observers. |
Deque<RequestObserver> manageObserverChain(Deque<RequestObserver> observers, Class<? extends RequestObserver> expectedObserverType)
Manages observer chain.
In modified collection, new observers might be added, observers might be removed or their behavior might be changed.
observers - collection of observers which were specified for given requestexpectedObserverType - the type of observers which is expected during currently processed requestint priotity()
Defines priority of observer service which specifies in which order will be #manageObserverChain(Collection)
method applied on collection of request observers.
DefaultRequestObserverService has priority 0 - no other observer can have this priority.
Services with priority lower than zero will be applied after DefaultRequestObserverService; services with priority higher will be applied before.
Copyright © 2014 JBoss by Red Hat. All rights reserved.