Annotation Interface ServiceConnection
ContainerConnectionSource which provides a service that can be connected to.- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionThe name of the service being connected to.Class<? extends ConnectionDetails>[]A restriction to types ofConnectionDetailsthat can be created from this connection.The name of the service being connected to.
- 
Element Details- 
valueThe name of the service being connected to. Container names are used to determine the connection details that should be created when a technology-specificContainersubclass is not available.If not specified, and if the Containerinstance is available, therepositorypart of thedocker image namewill be used. Note thatContainerinstances are not available early enough when the container is defined as a@Beanmethod. All@ServiceConnection@Beanmethods that need to match on the connection name must declare this attribute.This attribute is an alias for name().- Returns:
- the name of the service
- See Also:
 - Default:
- ""
 
- 
nameThe name of the service being connected to. Container names are used to determine the connection details that should be created when a technology-specificContainersubclass is not available.If not specified, and if the Containerinstance is available, therepositorypart of thedocker image namewill be used. Note thatContainerinstances are not available early enough when the container is defined as a@Beanmethod. All@ServiceConnection@Beanmethods that need to match on the connection name must declare this attribute.This attribute is an alias for value().- Returns:
- the name of the service
- See Also:
 - Default:
- ""
 
- 
typeClass<? extends ConnectionDetails>[] typeA restriction to types ofConnectionDetailsthat 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:
- {}
 
 
-