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, traceOrDebugWarnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTraceState, getType, setTraceStategetDescription, setDescriptionpublic boolean mediate(MessageContext synCtx)
Mediatorpublic List<Mediator> getList()
ListMediatorgetList in interface ListMediatorpublic boolean addChild(Mediator m)
ListMediatoraddChild in interface ListMediatorm - the mediator to be addedpublic boolean addAll(List<Mediator> c)
ListMediatoraddAll in interface ListMediatorc - the list of mediators to be addedpublic Mediator getChild(int pos)
ListMediatorgetChild in interface ListMediatorpos - index of mediator to returnpublic boolean removeChild(Mediator m)
ListMediatorremoveChild in interface ListMediatorm - mediator to be removed from this list, if presentpublic Mediator removeChild(int pos)
ListMediatorremoveChild in interface ListMediatorpos - the index of the mediator to removepublic void init(SynapseEnvironment se)
init in interface ManagedLifecyclese - synapse environmentpublic void destroy()
destroy in interface ManagedLifecyclepublic boolean isContentAware()
isContentAware in interface MediatorisContentAware in class AbstractMediatorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.