Package com.linecorp.armeria.spring
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 TypeMethodDescriptionvoid
configure
(ServerBuilder serverBuilder) Configures the server using the specifiedServerBuilder
.default int
getOrder()
Returns the evaluation order of this configurator.
-
Method Details
-
configure
Configures the server using the specifiedServerBuilder
. -
getOrder
default int getOrder()Returns the evaluation order of this configurator. A user can specify the order with anOrder
annotation when defining a bean with aBean
annotation.Note that the default value of the
Order
annotation isOrdered.LOWEST_PRECEDENCE
which equals toInteger.MAX_VALUE
, but it is overridden to0
by this default method.- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- See Also:
-
Ordered.LOWEST_PRECEDENCE
Ordered.HIGHEST_PRECEDENCE
AnnotationAwareOrderComparator
-