final class EntityFilteringHelper
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
EntityFilteringHelper()
Prevent instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<T> clazz) |
static java.lang.annotation.Annotation[] |
getFilteringAnnotations(java.lang.annotation.Annotation[] annotations)
Filter given annotations and return only entity-filtering ones.
|
static java.util.Set<java.lang.String> |
getFilteringScopes(java.lang.annotation.Annotation[] annotations)
Get entity-filtering scopes from given annotations.
|
static java.util.Set<java.lang.String> |
getFilteringScopes(java.lang.annotation.Annotation[] annotations,
boolean filter)
Get entity-filtering scopes from given annotations.
|
public static java.util.Set<java.lang.String> getFilteringScopes(java.lang.annotation.Annotation[] annotations)
annotations - list of arbitrary annotations.public static java.util.Set<java.lang.String> getFilteringScopes(java.lang.annotation.Annotation[] annotations,
boolean filter)
annotations - list of arbitrary annotations.filter - true whether the given annotation should be reduced to only entity-filtering annotations,
false otherwise.public static java.lang.annotation.Annotation[] getFilteringAnnotations(java.lang.annotation.Annotation[] annotations)
annotations - list of arbitrary annotations.public static <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.annotation.Annotation[] annotations,
java.lang.Class<T> clazz)