本文整理匯總了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);
}