Interface PayloadParserRegistry.ConfigurationCallback

  • Enclosing class:
    PayloadParserRegistry

    public static interface PayloadParserRegistry.ConfigurationCallback
    Configuration Callback that should be implemented by CSMessageParser that is in charge of managing all registrered pay load parsers.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void configurePayloadParser​(java.lang.String namespace, PayloadParser payloadParser)
      Method called by the registry when a payload parser is initialized and needs current active configuration.
      boolean needReinitialization​(java.lang.String namespace)
      Method to determine if a parser needs to be reinitized with a new configuration.
      void updateContext()
      Method called by PayloadParserRegistry when a new payload parser have be registered or de-registered and the configuration manager might need to update it's context.
    • Method Detail

      • needReinitialization

        boolean needReinitialization​(java.lang.String namespace)
                              throws MessageProcessingException
        Method to determine if a parser needs to be reinitized with a new configuration.
        Throws:
        MessageProcessingException - if internal exception occurred checking configuration update.
      • configurePayloadParser

        void configurePayloadParser​(java.lang.String namespace,
                                    PayloadParser payloadParser)
                             throws MessageProcessingException
        Method called by the registry when a payload parser is initialized and needs current active configuration.
        Throws:
        MessageProcessingException - if internal exception occurred providing configuration data.
      • updateContext

        void updateContext()
                    throws MessageProcessingException
        Method called by PayloadParserRegistry when a new payload parser have be registered or de-registered and the configuration manager might need to update it's context.
        Throws:
        MessageProcessingException