Class BeanMediator

  • All Implemented Interfaces:
    AspectConfigurable, Mediator, SynapseArtifact

    public class BeanMediator
    extends AbstractMediator
    Bean mediator can manipulate a JavaBean that is bound to the Synapse message context as a property. This mediator can be used to create a new bean (CREATE action), remove an existing bean (REMOVE action), set a property of an existing JavaBean (SET_PROPERTY action) or to retrieve a property of an existing JavaBean (GET_PROPERTY) action.
    • Constructor Detail

      • BeanMediator

        public BeanMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Manipulates a JavaBean attached to the current message context according to the supplied semantics.
        Parameters:
        synCtx - The current message for mediation
        Returns:
        true If mediation should continue
      • getVarName

        public String getVarName()
      • setVarName

        public void setVarName​(String varName)
      • getPropertyName

        public String getPropertyName()
      • setPropertyName

        public void setPropertyName​(String propertyName)
      • getValue

        public Value getValue()
      • setValue

        public void setValue​(Value value)
      • getTarget

        public Target getTarget()
      • setTarget

        public void setTarget​(Target target)
      • isReplace

        public boolean isReplace()
      • setReplace

        public void setReplace​(boolean replace)
      • getClazz

        public Class getClazz()
      • setClazz

        public void setClazz​(Class clazz)