类的使用
org.springframework.boot.autoconfigure.condition.ConditionMessage
使用ConditionMessage的程序包
程序包
说明
@Condition annotations and supporting classes.-
org.springframework.boot.autoconfigure.condition中ConditionMessage的使用
修饰符和类型方法说明Return a newConditionMessagebased on the instance and an appended message.ConditionMessage.ItemsBuilder.atAll()Used when no items are available.Indicates something is available.Indicates the reason.static ConditionMessageConditionMessage.empty()Factory method to return a new emptyConditionMessage.ConditionMessage.Builder.foundExactly(Object result) Indicate that an exact result was found.ConditionOutcome.getConditionMessage()Return an outcome message ornull.Indicate the items.ConditionMessage.ItemsBuilder.items(Collection<?> items) Indicate the items.ConditionMessage.ItemsBuilder.items(ConditionMessage.Style style, Object... items) Indicate the items.ConditionMessage.ItemsBuilder.items(ConditionMessage.Style style, Collection<?> items) Indicate the items with aConditionMessage.Style.ConditionMessage.Builder.notAvailable(String item) Indicates something is not available.static ConditionMessageFactory method to create a newConditionMessagewith a specific message.static ConditionMessageConditionMessage.of(Collection<? extends ConditionMessage> messages) Factory method to create a newConditionMessagecomprised of the specified messages.ConditionMessage.Builder.resultedIn(Object result) Indicates a single result.修饰符和类型方法说明static ConditionOutcomeConditionOutcome.match(ConditionMessage message) Create a newConditionOutcomeinstance for 'match'.static ConditionOutcomeConditionOutcome.noMatch(ConditionMessage message) Create a newConditionOutcomeinstance for 'no match'.修饰符和类型方法说明static ConditionMessageConditionMessage.of(Collection<? extends ConditionMessage> messages) Factory method to create a newConditionMessagecomprised of the specified messages.限定符构造器说明ConditionOutcome(boolean match, ConditionMessage message) Create a newConditionOutcomeinstance.