List of usage examples for org.springframework.boot.actuate.endpoint EndpointId EndpointId
private EndpointId(String value)
From source file:org.springframework.boot.actuate.endpoint.EndpointId.java
/** * Factory method to create a new {@link EndpointId} of the specified value. * @param value the endpoint ID value//from w ww . j a v a 2s . co m * @return an {@link EndpointId} instance */ public static EndpointId of(String value) { return new EndpointId(value); }
From source file:org.springframework.boot.actuate.endpoint.EndpointId.java
/** * Factory method to create a new {@link EndpointId} from a property value. More * lenient than {@link #of(String)} to allow for common "relaxed" property variants. * @param value the property value to convert * @return an {@link EndpointId} instance */// w w w. j a va 2 s. co m public static EndpointId fromPropertyValue(String value) { return new EndpointId(value.replace("-", "")); }