當前位置: 首頁>>代碼示例>>Java>>正文


Java EnvironmentAccessor類代碼示例

本文整理匯總了Java中org.springframework.cloud.util.EnvironmentAccessor的典型用法代碼示例。如果您正苦於以下問題:Java EnvironmentAccessor類的具體用法?Java EnvironmentAccessor怎麽用?Java EnvironmentAccessor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EnvironmentAccessor類屬於org.springframework.cloud.util包,在下文中一共展示了EnvironmentAccessor類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: systemPropertiesLookup

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
/**
 * Adapter from the {@link EnvironmentAccessor}'s system-property resolution to the {@code StrLookup} interface.
 *
 * @param env the {@code EnvironmentAccessor} to use for the lookups
 * @return a {@code StrLookup} view of the accessor's system properties
 */
private StrLookup<String> systemPropertiesLookup(final EnvironmentAccessor env) {
	return new StrLookup<String>() {
		@Override
		public String lookup(String key) {
			return env.getSystemProperty(key);
		}
	};
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:15,代碼來源:PropertiesFileResolver.java

示例2: setEnvironmentAccessor

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
public void setEnvironmentAccessor(EnvironmentAccessor environment) {
	this.environment = environment;
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-lattice,代碼行數:4,代碼來源:LatticeConnector.java

示例3: setCloudEnvironment

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
public void setCloudEnvironment(EnvironmentAccessor environment) {
    super.setCloudEnvironment(environment);
}
 
開發者ID:cloudfoundry-community,項目名稱:spring-cloud-s3-service-connector,代碼行數:4,代碼來源:TestCloudFoundryConnector.java

示例4: setCloudEnvironment

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
void setCloudEnvironment(EnvironmentAccessor environment) {
	this.environment = environment;
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:4,代碼來源:CloudFoundryConnector.java

示例5: PropertiesFileResolver

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
PropertiesFileResolver(final EnvironmentAccessor env, final String classpathPropertiesFilename) {
	this.env = env;
	this.classpathPropertiesFilename = classpathPropertiesFilename;
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:5,代碼來源:PropertiesFileResolver.java

示例6: setEnvironmentAccessor

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
void setEnvironmentAccessor(EnvironmentAccessor env) {
	this.env = env;
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:4,代碼來源:LocalConfigConnector.java

示例7: ApplicationInstanceInfoCreator

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
public ApplicationInstanceInfoCreator(EnvironmentAccessor environmentAccessor) {
	this.environment = environmentAccessor;
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:4,代碼來源:ApplicationInstanceInfoCreator.java

示例8: setCloudEnvironment

import org.springframework.cloud.util.EnvironmentAccessor; //導入依賴的package包/類
void setCloudEnvironment(EnvironmentAccessor environment) {
	this.environment = environment;
	this.applicationInstanceInfoCreator = new ApplicationInstanceInfoCreator(environment);
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-connectors,代碼行數:5,代碼來源:HerokuConnector.java


注:本文中的org.springframework.cloud.util.EnvironmentAccessor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。