public class LocalConfigConnector extends AbstractCloudConnector<UriBasedServiceData>
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_ID_PROPERTY |
static List<String> |
META_PROPERTIES
These properties configure the connector itself and aren't service definitions.
|
static String |
PROPERTIES_FILE_PROPERTY |
static String |
PROPERTY_PREFIX |
static Pattern |
SERVICE_PROPERTY_PATTERN |
serviceInfoCreators| Constructor and Description |
|---|
LocalConfigConnector() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationInstanceInfo |
getApplicationInstanceInfo()
Get information about the application instance.
|
protected FallbackServiceInfoCreator<BaseServiceInfo,UriBasedServiceData> |
getFallbackServiceInfoCreator() |
protected List<UriBasedServiceData> |
getServicesData() |
boolean |
isInMatchingCloud()
Returns
true if a property named spring.cloud.appId is present in any of the property sources. |
getServiceInfos, registerServiceInfoCreatorpublic static final String PROPERTY_PREFIX
public static final Pattern SERVICE_PROPERTY_PATTERN
public static final String APP_ID_PROPERTY
public static final String PROPERTIES_FILE_PROPERTY
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 ApplicationInstanceInfo getApplicationInstanceInfo()
CloudConnector
This method cannot return null, since that would imply there is no application instance.
protected List<UriBasedServiceData> getServicesData()
getServicesData in class AbstractCloudConnector<UriBasedServiceData>protected FallbackServiceInfoCreator<BaseServiceInfo,UriBasedServiceData> getFallbackServiceInfoCreator()
getFallbackServiceInfoCreator in class AbstractCloudConnector<UriBasedServiceData>