Module com.github.rvesse.airline
Class StandardGlobalRestrictionsFactory
java.lang.Object
com.github.rvesse.airline.restrictions.factories.StandardGlobalRestrictionsFactory
- All Implemented Interfaces:
GlobalRestrictionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGlobalRestriction
(Annotation annotation) Try and create a global restriction from the given annotationList
<Class<? extends Annotation>> Gets a list of annotations that this factory can convert into global restrictions
-
Constructor Details
-
StandardGlobalRestrictionsFactory
public StandardGlobalRestrictionsFactory()
-
-
Method Details
-
createGlobalRestriction
Description copied from interface:GlobalRestrictionFactory
Try and create a global restriction from the given annotation- Specified by:
createGlobalRestriction
in interfaceGlobalRestrictionFactory
- Parameters:
annotation
- Annotation- Returns:
- Global restriction or
null
if this factory cannot create a restriction from the given annotation
-
supportedGlobalAnnotations
Description copied from interface:GlobalRestrictionFactory
Gets a list of annotations that this factory can convert into global restrictions- Specified by:
supportedGlobalAnnotations
in interfaceGlobalRestrictionFactory
- Returns:
- List of supported annotations
-