Annotation Interface ServiceConnection
Annotation used to indicate that a field or method is a
ContainerConnectionSource
which provides a service that can be connected to.- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe name of the service being connected to.Class<? extends ConnectionDetails>[]
A restriction to types ofConnectionDetails
that can be created from this connection.The name of the service being connected to.
-
Element Details
-
value
The name of the service being connected to. If not specified, the image name will be used. Container names are used to determine the connection details that should be created when a technology-specificContainer
subclass is not available. This attribute is an alias forname()
.- Returns:
- the name of the service
- See Also:
- Default:
- ""
-
name
The name of the service being connected to. If not specified, the image name will be used. Container names are used to determine the connection details that should be created when a technology-specificContainer
subclass is not available.- Returns:
- the name of the service
- See Also:
- Default:
- ""
-
type
Class<? extends ConnectionDetails>[] typeA restriction to types ofConnectionDetails
that can be created from this connection. The default value does not restrict the types that can be created.- Returns:
- the connection detail types that can be created to establish the connection
- Default:
- {}
-