Search in sources :

Example 1 with ApiVersion

use of org.springframework.boot.actuate.endpoint.ApiVersion in project spring-boot by spring-projects.

the class CachingOperationInvoker method getCacheKey.

private CacheKey getCacheKey(InvocationContext context) {
    ApiVersion contextApiVersion = context.resolveArgument(ApiVersion.class);
    Principal principal = context.resolveArgument(Principal.class);
    WebServerNamespace serverNamespace = context.resolveArgument(WebServerNamespace.class);
    return new CacheKey(contextApiVersion, principal, serverNamespace);
}
Also used : ApiVersion(org.springframework.boot.actuate.endpoint.ApiVersion) WebServerNamespace(org.springframework.boot.actuate.endpoint.web.WebServerNamespace) Principal(java.security.Principal)

Aggregations

Principal (java.security.Principal)1 ApiVersion (org.springframework.boot.actuate.endpoint.ApiVersion)1 WebServerNamespace (org.springframework.boot.actuate.endpoint.web.WebServerNamespace)1