public class LocalConfigConnector
extends org.springframework.cloud.AbstractCloudConnector<org.springframework.cloud.service.UriBasedServiceData>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_ID_PROPERTY |
static java.util.List<java.lang.String> |
META_PROPERTIES
These properties configure the connector itself and aren't service definitions.
|
static java.lang.String |
PROPERTIES_FILE_PROPERTY |
static java.lang.String |
PROPERTY_PREFIX |
static java.util.regex.Pattern |
SERVICE_PROPERTY_PATTERN |
Constructor and Description |
---|
LocalConfigConnector() |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.app.ApplicationInstanceInfo |
getApplicationInstanceInfo() |
protected org.springframework.cloud.FallbackServiceInfoCreator<org.springframework.cloud.service.BaseServiceInfo,org.springframework.cloud.service.UriBasedServiceData> |
getFallbackServiceInfoCreator() |
protected java.util.List<org.springframework.cloud.service.UriBasedServiceData> |
getServicesData() |
boolean |
isInMatchingCloud()
Returns
true if a property named spring.cloud.appId is present in any of the property sources. |
public static final java.lang.String PROPERTY_PREFIX
public static final java.util.regex.Pattern SERVICE_PROPERTY_PATTERN
public static final java.lang.String APP_ID_PROPERTY
public static final java.lang.String PROPERTIES_FILE_PROPERTY
public static final java.util.List<java.lang.String> META_PROPERTIES
public boolean isInMatchingCloud()
true
if a property named spring.cloud.appId
is present in any of the property sources.
On the first call, attempts to load properties from a file specified in spring.cloud.propertiesFile
.public org.springframework.cloud.app.ApplicationInstanceInfo getApplicationInstanceInfo()
protected java.util.List<org.springframework.cloud.service.UriBasedServiceData> getServicesData()
getServicesData
in class org.springframework.cloud.AbstractCloudConnector<org.springframework.cloud.service.UriBasedServiceData>
protected org.springframework.cloud.FallbackServiceInfoCreator<org.springframework.cloud.service.BaseServiceInfo,org.springframework.cloud.service.UriBasedServiceData> getFallbackServiceInfoCreator()
getFallbackServiceInfoCreator
in class org.springframework.cloud.AbstractCloudConnector<org.springframework.cloud.service.UriBasedServiceData>