类的使用
cn.taketoday.core.env.PropertySources
使用PropertySources的程序包
程序包
说明
environment abstraction consisting of bean definition
profile and hierarchical property source support.
-
cn.taketoday.core.env中PropertySources的使用
修饰符和类型字段说明private final PropertySourcesAbstractEnvironment.propertySourcesprivate final PropertySourcesPropertySourcesPropertyResolver.propertySources修饰符和类型方法说明AbstractEnvironment.getPropertySources()ConfigurableEnvironment.getPropertySources()Return thePropertySourcesfor thisEnvironmentin mutable form, allowing for manipulation of the set ofPropertySourceobjects that should be searched when resolving properties against thisEnvironmentobject.参数类型为PropertySources的cn.taketoday.core.env中的方法修饰符和类型方法说明protected ConfigurablePropertyResolverAbstractEnvironment.createPropertyResolver(PropertySources propertySources) Factory method used to create theConfigurablePropertyResolverinstance used by the Environment.protected voidAbstractEnvironment.customizePropertySources(PropertySources propertySources) Customize the set ofPropertySourceobjects to be searched by thisEnvironmentduring calls toAbstractEnvironment.getProperty(String)and related methods.protected voidStandardEnvironment.customizePropertySources(PropertySources propertySources) Customize the set of property sources with those appropriate for any standard Java environment: "systemProperties" "systemEnvironment"参数类型为PropertySources的cn.taketoday.core.env中的构造器限定符构造器说明protectedAbstractEnvironment(PropertySources propertySources) Create a newEnvironmentinstance with a specificPropertySourcesinstance, calling back toAbstractEnvironment.customizePropertySources(PropertySources)during construction to allow subclasses to contribute or manipulatePropertySourceinstances as appropriate.PropertySources(PropertySources propertySources) Create a newPropertySourcesfrom the given propertySources object, preserving the original order of containedPropertySourceobjects.PropertySourcesPropertyResolver(PropertySources propertySources) Create a new resolver against the given property sources.protectedStandardEnvironment(PropertySources propertySources) Create a newStandardEnvironmentinstance with a specificPropertySourcesinstance.