Interface ArmeriaServerConfigurator

All Superinterfaces:
org.springframework.core.Ordered
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArmeriaServerConfigurator extends org.springframework.core.Ordered
Interface used to configure a service on the default armeria server. Can be used to register arbitrary services.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(ServerBuilder serverBuilder)
    Configures the server using the specified ServerBuilder.
    default int
    Returns the evaluation order of this configurator.
  • Method Details

    • configure

      void configure(ServerBuilder serverBuilder)
      Configures the server using the specified ServerBuilder.
    • getOrder

      default int getOrder()
      Returns the evaluation order of this configurator. A user can specify the order with an Order annotation when defining a bean with a Bean annotation.

      Note that the default value of the Order annotation is Ordered.LOWEST_PRECEDENCE which equals to Integer.MAX_VALUE, but it is overridden to 0 by this default method.

      Specified by:
      getOrder in interface org.springframework.core.Ordered
      See Also:
      • Ordered.LOWEST_PRECEDENCE
      • Ordered.HIGHEST_PRECEDENCE
      • AnnotationAwareOrderComparator