Package io.microsphere.spring.net
Class SpringEnvironmentURLConnectionFactory
java.lang.Object
io.microsphere.spring.net.SpringSubProtocolURLConnectionFactory
io.microsphere.spring.net.SpringEnvironmentURLConnectionFactory
- All Implemented Interfaces:
io.microsphere.net.SubProtocolURLConnectionFactory
Spring
Environment
SubProtocolURLConnectionFactory
The URL pattern : "spring:env:{type}://...",
- {type} : the source type(optional),
"property-sources"
(as default when type is absent) or"profiles"
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
Environment
SubProtocolURLConnectionFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpringEnvironmentURLConnectionFactory
(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.core.convert.support.ConfigurableConversionService conversionService) -
Method Summary
Methods inherited from class io.microsphere.spring.net.SpringSubProtocolURLConnectionFactory
supports
-
Field Details
-
PROPERTY_SOURCES_TYPE
- See Also:
-
PROFILES_TYPE
- See Also:
-
-
Constructor Details
-
SpringEnvironmentURLConnectionFactory
public SpringEnvironmentURLConnectionFactory(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.core.convert.support.ConfigurableConversionService conversionService)
-
-
Method Details
-
getSubProtocol
Description copied from class:SpringSubProtocolURLConnectionFactory
Get the sub-protocol- Specified by:
getSubProtocol
in classSpringSubProtocolURLConnectionFactory
- Returns:
- non-null;
-
create
- Throws:
IOException
-