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:GlobalRestrictionFactoryTry and create a global restriction from the given annotation- Specified by:
createGlobalRestrictionin interfaceGlobalRestrictionFactory- Parameters:
annotation- Annotation- Returns:
- Global restriction or
nullif this factory cannot create a restriction from the given annotation
-
supportedGlobalAnnotations
Description copied from interface:GlobalRestrictionFactoryGets a list of annotations that this factory can convert into global restrictions- Specified by:
supportedGlobalAnnotationsin interfaceGlobalRestrictionFactory- Returns:
- List of supported annotations
-