本文整理汇总了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);
}
};
}
示例2: setEnvironmentAccessor
import org.springframework.cloud.util.EnvironmentAccessor; //导入依赖的package包/类
public void setEnvironmentAccessor(EnvironmentAccessor environment) {
this.environment = environment;
}
示例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;
}
示例5: PropertiesFileResolver
import org.springframework.cloud.util.EnvironmentAccessor; //导入依赖的package包/类
PropertiesFileResolver(final EnvironmentAccessor env, final String classpathPropertiesFilename) {
this.env = env;
this.classpathPropertiesFilename = classpathPropertiesFilename;
}
示例6: setEnvironmentAccessor
import org.springframework.cloud.util.EnvironmentAccessor; //导入依赖的package包/类
void setEnvironmentAccessor(EnvironmentAccessor env) {
this.env = env;
}
示例7: ApplicationInstanceInfoCreator
import org.springframework.cloud.util.EnvironmentAccessor; //导入依赖的package包/类
public ApplicationInstanceInfoCreator(EnvironmentAccessor environmentAccessor) {
this.environment = environmentAccessor;
}
示例8: setCloudEnvironment
import org.springframework.cloud.util.EnvironmentAccessor; //导入依赖的package包/类
void setCloudEnvironment(EnvironmentAccessor environment) {
this.environment = environment;
this.applicationInstanceInfoCreator = new ApplicationInstanceInfoCreator(environment);
}