Package io.micronaut.core.order
Interface Ordered
- All Known Subinterfaces:
AdvisedBeanType<T>
,ApplicationContextConfigurer
,BeanDefinition<T>
,BeanDefinitionReference<T>
,BeanElementVisitor<A>
,BeanInfo<T>
,BeanIntrospection<T>
,BeanType<T>
,ConstructorInterceptor<T>
,CookieDecoder
,DelegatingBeanDefinition<T>
,DisposableBeanDefinition<T>
,EnumBeanIntrospection<E>
,ExpressionEvaluationContextRegistrar
,HealthIndicator
,HttpClientFilter
,HttpFilter
,HttpLocaleResolver
,HttpServerFilter
,InfoSource
,InitializingBeanDefinition<T>
,InjectableBeanDefinition<T>
,InstantiatableBeanDefinition<T>
,Interceptor<T,
,R> LocaleResolver<T>
,LogElementBuilder
,MessageSource
,MethodInterceptor<T,
,R> NettyEmbeddedServer
,ParametrizedInstantiatableBeanDefinition<T>
,PropertiesInfoSource
,PropertySource
,ProxyBeanDefinition<T>
,QualifiedBeanType<T>
,RefreshEventListener
,RuntimeBeanDefinition<T>
,TypeElementVisitor<C,
,E> UnsafeBeanInstantiationIntrospection<T>
,ValidatedBeanDefinition<T>
- All Known Implementing Classes:
AbstractEnumBeanIntrospectionAndReference
,AbstractHealthIndicator
,AbstractInitializableBeanDefinition
,AbstractInitializableBeanDefinitionAndReference
,AbstractInitializableBeanDefinitionReference
,AbstractInitializableBeanIntrospection
,AbstractInitializableBeanIntrospectionAndReference
,AbstractLocaleResolver
,AbstractMessageSource
,AbstractPropertySourceLoader
,AbstractProviderDefinition
,ApplicationEventPublisherFactory
,ArgumentBeanType
,AsyncInterceptor
,AsyncTypeElementVisitor
,BeanImportVisitor
,BeanProviderDefinition
,BeanRegistration
,BuildInfoSource
,BytesSentElementBuilder
,CertificateProvidedSslBuilder
,ClientWebSocketInterceptor
,CloudFoundryVcapApplicationPropertySourceLoader
,CloudFoundryVcapServicesPropertySourceLoader
,CommandLinePropertySource
,CompositeCookieDecoder
,CompositeHttpLocaleResolver
,CompositeMessageSource
,ConfigurationInfoSource
,ConfigurationIntroductionAdvice
,ConfigurationReaderVisitor
,ContextConfigurerVisitor
,ContextRegistrar
,CookieElementBuilder
,CookieLocaleResolver
,CorsFilter
,DateTimeElementBuilder
,DefaultCookieDecoder
,DefaultNettyHttpClientRegistry
,DefaultRetryInterceptor
,DisabledBean
,DiscoveryClientHealthIndicator
,DiskSpaceIndicator
,ElapseTimeElementBuilder
,EmptyPropertySource
,EndpointsFilter
,EnvironmentPropertySource
,EnvJsonPropertySourceLoader
,ExecutableVisitor
,FilterVisitor
,FixedLocaleResolver
,FunctionClientAdvice
,GitInfoSource
,GraalTypeElementVisitor
,HeaderElementBuilder
,HttpAbstractLocaleResolver
,HttpClientIntroductionAdvice
,HttpFixedLocaleResolver
,InterceptorRegistryBean
,InternalApiTypeElementVisitor
,IntrospectedTypeElementVisitor
,JakartaProviderBeanDefinition
,JavaxProviderBeanDefinition
,JdbcIndicator
,JsonPropertySourceLoader
,JsonPropertySourceLoader
,KubernetesEnvironmentPropertySource
,LocalHostElementBuilder
,LocalIpElementBuilder
,LocalPortElementBuilder
,MapperVisitor
,MapPropertySource
,NettyCookieDecoder
,NettyHttpServer
,NotImplementedElementBuilder
,OptionsFilter
,PropertiesPropertySourceLoader
,RecoveryInterceptor
,RefreshInterceptor
,RefreshScope
,RemoteHostElementBuilder
,RemoteIpElementBuilder
,RequestLineElementBuilder
,RequestLocaleResolver
,RequestMethodElementBuilder
,RequestProtocolElementBuilder
,RequestUriElementBuilder
,ResourceBundleMessageSource
,ResponseCodeElementBuilder
,RouteValidationVisitor
,ServiceHttpClientHealthIndicator
,ServiceReadyHealthIndicator
,StaticMessageSource
,SystemPropertiesPropertySource
,WebSocketVisitor
,YamlPropertySourceLoader
public interface Ordered
Interface for objects that are ordered.
Provides a programmatic alternative to Order
.
Note that this interface only applies to injected collection types since the beans have
to be instantiated to resolve the order therefore unlike Order
it cannot be used for the purposes of prioritizing bean selection.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant for the highest precedence value.static final int
Constant for the lowest precedence value. -
Method Summary
-
Field Details
-
HIGHEST_PRECEDENCE
static final int HIGHEST_PRECEDENCEConstant for the highest precedence value.- See Also:
-
LOWEST_PRECEDENCE
static final int LOWEST_PRECEDENCEConstant for the lowest precedence value.- See Also:
-
-
Method Details
-
getOrder
default int getOrder()- Returns:
- The order of the object. Defaults to zero (no order).
-