类的使用
org.springframework.boot.context.properties.source.ConfigurationPropertyName
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
Support for external configuration properties.
Support for
@ConfigurationProperties binding.General
BindHandler implementations.Binding validation support.
Sources for external configuration properties.
-
org.springframework.boot.context.config中ConfigurationPropertyName的使用
修饰符和类型方法说明InvalidConfigDataPropertyException.getReplacement()Return the replacement property that should be used instead ornullif not replacement is available. -
org.springframework.boot.context.properties中ConfigurationPropertyName的使用
修饰符和类型方法说明BoundConfigurationProperties.get(ConfigurationPropertyName name) Get the configuration property bound to the given name. -
org.springframework.boot.context.properties.bind中ConfigurationPropertyName的使用
修饰符和类型方法说明<T> BindResult<T> Binder.bind(ConfigurationPropertyName name, Bindable<T> target) Bind the specified targetBindableusing this binder'sproperty sources.<T> BindResult<T> Binder.bind(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler) Bind the specified targetBindableusing this binder'sproperty sources.<T> TBinder.bindOrCreate(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler) Bind the specified targetBindableusing this binder'sproperty sourcesor create a new instance using the type of theBindableif the result of the binding isnull.default ObjectBindHandler.onCreate(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) Called when binding of an element ends with an unbound result and a newly created instance is about to be returned.AbstractBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) default ObjectBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) Called when binding fails for any reason (including failures fromBindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)orBindHandler.onCreate(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)calls).voidAbstractBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) default voidBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) Called when binding finishes with either bound or unbound result.<T> Bindable<T> AbstractBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) default <T> Bindable<T> BindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) Called when binding of an element starts but before any result has been determined.AbstractBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) default ObjectBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) Called when binding of an element ends with a successful result.BoundPropertiesTrackingBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) -
org.springframework.boot.context.properties.bind.handler中ConfigurationPropertyName的使用
修饰符和类型方法说明IgnoreErrorsBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) IgnoreTopLevelConverterNotFoundBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) NoUnboundElementsBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) voidNoUnboundElementsBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) <T> Bindable<T> NoUnboundElementsBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) NoUnboundElementsBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) -
org.springframework.boot.context.properties.bind.validation中ConfigurationPropertyName的使用
修饰符和类型方法说明ValidationBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) voidValidationBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) <T> Bindable<T> ValidationBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) ValidationBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) -
org.springframework.boot.context.properties.source中ConfigurationPropertyName的使用
修饰符和类型字段说明static final ConfigurationPropertyNameConfigurationPropertyName.EMPTYAn emptyConfigurationPropertyName.修饰符和类型方法说明static ConfigurationPropertyNameConfigurationPropertyName.adapt(CharSequence name, char separator) Create aConfigurationPropertyNameby adapting the given source.Create a newConfigurationPropertyNameby appending the given suffix.ConfigurationPropertyName.append(ConfigurationPropertyName suffix) Create a newConfigurationPropertyNameby appending the given suffix.ConfigurationPropertyName.chop(int size) Return a newConfigurationPropertyNameby chopping this name to the givensize.ConfigurationProperty.getName()Return the name of the configuration property.ConfigurationPropertyNameAliases.getNameForAlias(ConfigurationPropertyName alias) ConfigurationPropertyName.getParent()Return the parent of thisConfigurationPropertyNameorEMPTYif there is no parent.static ConfigurationPropertyNameConfigurationPropertyName.of(CharSequence name) Return aConfigurationPropertyNamefor the specified string.static ConfigurationPropertyNameConfigurationPropertyName.ofIfValid(CharSequence name) Return aConfigurationPropertyNamefor the specified string ornullif the name is not valid.ConfigurationPropertyName.subName(int offset) Return a newConfigurationPropertyNameby based on this name offset by specific element index.修饰符和类型方法说明ConfigurationPropertyNameAliases.getAliases(ConfigurationPropertyName name) ConfigurationPropertyNameAliases.iterator()default Iterator<ConfigurationPropertyName> IterableConfigurationPropertySource.iterator()Return an iterator for thenamesmanaged by this source.MapConfigurationPropertySource.iterator()IterableConfigurationPropertySource.stream()Returns a sequentialStreamfor thenamesmanaged by this source.MapConfigurationPropertySource.stream()修饰符和类型方法说明voidConfigurationPropertyNameAliases.addAliases(ConfigurationPropertyName name, ConfigurationPropertyName... aliases) ConfigurationPropertyName.append(ConfigurationPropertyName suffix) Create a newConfigurationPropertyNameby appending the given suffix.intConfigurationPropertyName.compareTo(ConfigurationPropertyName other) default ConfigurationPropertyStateConfigurationPropertySource.containsDescendantOf(ConfigurationPropertyName name) Returns if the source contains any descendants of the specified name.default ConfigurationPropertyStateIterableConfigurationPropertySource.containsDescendantOf(ConfigurationPropertyName name) ConfigurationPropertyNameAliases.getAliases(ConfigurationPropertyName name) ConfigurationPropertySource.getConfigurationProperty(ConfigurationPropertyName name) Return a singleConfigurationPropertyfrom the source ornullif no property can be found.MapConfigurationPropertySource.getConfigurationProperty(ConfigurationPropertyName name) ConfigurationPropertyNameAliases.getNameForAlias(ConfigurationPropertyName alias) booleanConfigurationPropertyName.isAncestorOf(ConfigurationPropertyName name) Returnstrueif this element is an ancestor (immediate or nested parent) of the specified name.booleanConfigurationPropertyName.isParentOf(ConfigurationPropertyName name) Returnstrueif this element is an immediate parent of the specified name.修饰符和类型方法说明default ConfigurationPropertySourceConfigurationPropertySource.filter(Predicate<ConfigurationPropertyName> filter) Return a filtered variant of this source, containing only names that match the givenPredicate.IterableConfigurationPropertySource.filter(Predicate<ConfigurationPropertyName> filter) 限定符构造器说明ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin) ConfigurationPropertyNameAliases(ConfigurationPropertyName name, ConfigurationPropertyName... aliases)