List of usage examples for org.springframework.expression.spel.support SimpleEvaluationContext forReadOnlyDataBinding
public static Builder forReadOnlyDataBinding()
From source file:org.springframework.cloud.gateway.discovery.DiscoveryClientRouteDefinitionLocator.java
public DiscoveryClientRouteDefinitionLocator(DiscoveryClient discoveryClient, DiscoveryLocatorProperties properties) { this.discoveryClient = discoveryClient; this.properties = properties; if (StringUtils.hasText(properties.getRouteIdPrefix())) { this.routeIdPrefix = properties.getRouteIdPrefix(); } else {/*from www . j a v a 2 s .co m*/ this.routeIdPrefix = this.discoveryClient.getClass().getSimpleName() + "_"; } evalCtxt = SimpleEvaluationContext.forReadOnlyDataBinding().withInstanceMethods().build(); }