当前位置: 首页>>代码示例>>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;未经允许,请勿转载。