@Override public ApplicationInstanceInfo getApplicationInstanceInfo() { return new BasicApplicationInstanceInfo(UUID.randomUUID().toString(), findProperty(APP_ID_PROPERTY), Collections.<String, Object>emptyMap()); }
/** * Returns {@code true} if a property named {@code spring.cloud.appId} is present in any of the property sources. * On the first call, attempts to load properties from a file specified in {@code spring.cloud.propertiesFile}. */ @Override public boolean isInMatchingCloud() { if (fileProperties == null) readFileProperties(); String appId = findProperty(APP_ID_PROPERTY); if (appId == null) logger.info("the property " + APP_ID_PROPERTY + " was not found in the system properties or configuration file"); return appId != null; }
@Override public ApplicationInstanceInfo getApplicationInstanceInfo() { return new BasicApplicationInstanceInfo(UUID.randomUUID().toString(), findProperty(APP_ID_PROPERTY), Collections.<String, Object>emptyMap()); }
/** * Returns {@code true} if a property named {@code spring.cloud.appId} is present in any of the property sources. * On the first call, attempts to load properties from a file specified in {@code spring.cloud.propertiesFile}. */ @Override public boolean isInMatchingCloud() { if (fileProperties == null) readFileProperties(); String appId = findProperty(APP_ID_PROPERTY); if (appId == null) logger.info("the property " + APP_ID_PROPERTY + " was not found in the system properties or configuration file"); return appId != null; }