@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface EndpointExtension
operations
to be added to an existing endpoint. For example, a web
extension may offer variations of a read operation to support filtering based on a
query parameter.
Extension annotations must provide an EndpointFilter
to restrict when the
extension applies. The endpoint
attribute is usually re-declared using
@AliasFor
. For example:
@EndpointExtension(filter = WebEndpointFilter.class) public @interface EndpointWebExtension { @AliasFor(annotation = EndpointExtension.class, attribute = "endpoint") Class<?> endpoint(); }
Modifier and Type | Required Element and Description |
---|---|
Class<? extends EndpointFilter<?>> |
filter
The filter class used to determine when the extension applies.
|
public abstract Class<? extends EndpointFilter<?>> filter
public abstract Class<?> endpoint
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.