Class AnnotatedCommandMediator

    • Constructor Detail

      • AnnotatedCommandMediator

        public AnnotatedCommandMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Description copied from class: POJOCommandMediator
        Implements the mediate method of the Mediator interface. This method will instantiate a new instance of the POJO class, set all specified properties from the current runtime state (and message context) and call the execute method of the Command object.
        Specified by:
        mediate in interface Mediator
        Overrides:
        mediate in class POJOCommandMediator
        Parameters:
        synCtx - - Synapse MessageContext to be mediated
        Returns:
        boolean true since this will not stop exection chain
      • introspectClass

        protected void introspectClass​(Class<?> commandClass)
        Introspect the command class annotations
      • createSynapseXPATH

        protected SynapseXPath createSynapseXPATH​(String xpath,
                                                  Namespaces nsAnnotation)
        Create an SynapseXPath from an xpath string
      • getNamespaces

        protected Map<String,​String> getNamespaces​(Namespaces namespaces)
        Creates a Map of namespace prefixes and namespaces from a Namespace annotation and the default Namespace annotation on the command class.