接口的使用
org.springframework.core.env.PropertyResolver
使用PropertyResolver的程序包 程序包 说明 org.springframework.beans.support Classes supporting the org.springframework.beans package, such as utility classes for sorting and holding lists of beans.org.springframework.core.env Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.org.springframework.core.io Generic abstraction for (file-based) resources, used throughout the framework.org.springframework.core.io.support Support classes for Spring's resource abstraction.org.springframework.mock.env This package contains mock implementations of theEnvironment
andPropertySource
abstractions introduced in Spring 3.1.org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.support中PropertyResolver的使用
参数类型为PropertyResolver的org.springframework.beans.support中的构造器 构造器 说明 ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the givenResourceLoader
andPropertyResolver
.org.springframework.core.env中PropertyResolver的使用
org.springframework.core.env中PropertyResolver的子接口 修饰符和类型 接口 说明 interface
ConfigurableEnvironment
Configuration interface to be implemented by most if not allEnvironment
types.interface
ConfigurablePropertyResolver
Configuration interface to be implemented by most if not allPropertyResolver
types.interface
Environment
Interface representing the environment in which the current application is running.实现PropertyResolver的org.springframework.core.env中的类 修饰符和类型 类 说明 class
AbstractEnvironment
Abstract base class forEnvironment
implementations.class
AbstractPropertyResolver
Abstract base class for resolving properties against any underlying source.class
PropertySourcesPropertyResolver
PropertyResolver
implementation that resolves property values against an underlying set ofPropertySources
.class
StandardEnvironment
Environment
implementation suitable for use in 'standard' (i.e. non-web) applications.org.springframework.core.io中PropertyResolver的使用
参数类型为PropertyResolver的org.springframework.core.io中的构造器 构造器 说明 ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver)
Create a new instance of theResourceEditor
class using the givenResourceLoader
andPropertyResolver
.ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders)
Create a new instance of theResourceEditor
class using the givenResourceLoader
.org.springframework.core.io.support中PropertyResolver的使用
参数类型为PropertyResolver的org.springframework.core.io.support中的构造器 构造器 说明 ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver)
Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolver
andPropertyResolver
(typically anEnvironment
).ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders)
Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolver
andPropertyResolver
(typically anEnvironment
).org.springframework.mock.env中PropertyResolver的使用
实现PropertyResolver的org.springframework.mock.env中的类 修饰符和类型 类 说明 class
MockEnvironment
SimpleConfigurableEnvironment
implementation exposingMockEnvironment.setProperty(String, String)
andMockEnvironment.withProperty(String, String)
methods for testing purposes.org.springframework.web.context中PropertyResolver的使用
org.springframework.web.context中PropertyResolver的子接口 修饰符和类型 接口 说明 interface
ConfigurableWebEnvironment
Specialization ofConfigurableEnvironment
allowing initialization of servlet-relatedPropertySource
objects at the earliest moment that theServletContext
and (optionally)ServletConfig
become available.org.springframework.web.context.support中PropertyResolver的使用
实现PropertyResolver的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
StandardServletEnvironment
Environment
implementation to be used byServlet
-based web applications.