Annotation Interface ServiceConnection
Annotation used to indicate that a field provides a service that can be connected to.
Typically used to meta-annotate a higher-level annotation.
When used, a ConnectionDetailsFactory
must be registered in
spring.factories
to provide ConnectionDetails
for the field value.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends ConnectionDetails>
The type ofConnectionDetails
that can describe how to connect to the service.
-
Element Details
-
value
Class<? extends ConnectionDetails> valueThe type ofConnectionDetails
that can describe how to connect to the service.- Returns:
- the connection type
-