@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) public @interface RequiresDarkFeature
Allows multiple feature keys to be specified, in which case ALL are required to be enabled (e.g. flags are treated as an AND condition).
The annotation can be applied at the resource class and method level to allow fine-grained control of access. e.g.
@RequiresDarkFeature("my.plugin.enabled")
@Path("/")
class MyResource
{
...
@GET
@Produces("application/json")
@RequiresDarkFeature("my.plugin.feature1")
public Response getSomething()
{
...
}
}
public abstract String[] value
Copyright © 2016 Atlassian. All rights reserved.