Interface RoutingBuilders


  • public interface RoutingBuilders
    Provides Routing.Builder instances (for the default and the actual) for a Helidon MP service, based on configuration for the component (if any) and defaults otherwise.
    • Method Detail

      • defaultRoutingBuilder

        Routing.Builder defaultRoutingBuilder()
        Returns:
        the default Routing.Builder for the component
      • routingBuilder

        Routing.Builder routingBuilder()
        Returns:
        the actual Routing.Builder for the component; might be the default
      • create

        static RoutingBuilders create​(MpServiceContext context,
                                      String componentName)
        Prepares the default and actual Routing.Builder instances based on the "routing" configuration for the specific component.
        Parameters:
        context - the MpServiceContext for the calling service
        componentName - config key under which "routing" config might exist for the component of interest
        Returns:
        RoutingBuilders based on the named config (or default)
      • create

        static RoutingBuilders create​(MpServiceContext context,
                                      Config componentConfig)
        Prepares the default and actual Routing.Builder instances based on the "routing" configuration for the specific component configuration.
        Parameters:
        context - the MpServiceContext for the calling service
        componentConfig - the configuration for the calling service
        Returns:
        RoutingBuilders based on the config (or default)