Package com.vaadin.copilot
Class AccessRequirementUtil
java.lang.Object
com.vaadin.copilot.AccessRequirementUtil
Utility class for figuring out access requirements for Java methods such as
routes and browser callables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessRequirement
getAccessRequirement
(AnnotatedElement annotatedClassOrMethod, AnnotatedElement fallback) Get the access requirement for the given annotated class or method based on its annotations.
-
Constructor Details
-
AccessRequirementUtil
public AccessRequirementUtil()
-
-
Method Details
-
getAccessRequirement
public static AccessRequirement getAccessRequirement(AnnotatedElement annotatedClassOrMethod, AnnotatedElement fallback) Get the access requirement for the given annotated class or method based on its annotations.- Parameters:
annotatedClassOrMethod
- the annotated class or methodfallback
- the class or method to check if the given class has no access control annotations- Returns:
- the access requirement for using the class or method
-