public abstract class AbstractListMediator extends AbstractMediator implements ListMediator
ListMediator
Modifier and Type | Field and Description |
---|---|
protected List<Mediator> |
mediators
the list of child mediators held.
|
log, trace, traceState
Constructor and Description |
---|
AbstractListMediator() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(List<Mediator> c)
Appends all of the mediators in the specified collection to the end of this mediator's (children)
list, in the order that they are returned by the specified collection's iterator
|
boolean |
addChild(Mediator m)
Appends the specified mediator to the end of this mediator's (children) list
|
void |
destroy()
Destroy child mediators recursively
|
Mediator |
getChild(int pos)
Returns the mediator at the specified position
|
List<Mediator> |
getList()
Return the list of mediators of this List mediator instance
|
void |
init(SynapseEnvironment se)
Initialize child mediators recursively
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
Mediator |
removeChild(int pos)
Removes the mediator at the specified position in this list
|
boolean |
removeChild(Mediator m)
Removes the first occurrence in this list of the specified mediator
|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTraceState, getType, setTraceState
getDescription, setDescription
public boolean mediate(MessageContext synCtx)
Mediator
public List<Mediator> getList()
ListMediator
getList
in interface ListMediator
public boolean addChild(Mediator m)
ListMediator
addChild
in interface ListMediator
m
- the mediator to be addedpublic boolean addAll(List<Mediator> c)
ListMediator
addAll
in interface ListMediator
c
- the list of mediators to be addedpublic Mediator getChild(int pos)
ListMediator
getChild
in interface ListMediator
pos
- index of mediator to returnpublic boolean removeChild(Mediator m)
ListMediator
removeChild
in interface ListMediator
m
- mediator to be removed from this list, if presentpublic Mediator removeChild(int pos)
ListMediator
removeChild
in interface ListMediator
pos
- the index of the mediator to removepublic void init(SynapseEnvironment se)
init
in interface ManagedLifecycle
se
- synapse environmentpublic void destroy()
destroy
in interface ManagedLifecycle
public boolean isContentAware()
isContentAware
in interface Mediator
isContentAware
in class AbstractMediator
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.