Module com.github.rvesse.airline
Class StandardGlobalRestrictionsFactory
- java.lang.Object
-
- com.github.rvesse.airline.restrictions.factories.StandardGlobalRestrictionsFactory
-
- All Implemented Interfaces:
GlobalRestrictionFactory
public class StandardGlobalRestrictionsFactory extends java.lang.Object implements GlobalRestrictionFactory
-
-
Constructor Summary
Constructors Constructor Description StandardGlobalRestrictionsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlobalRestrictioncreateGlobalRestriction(java.lang.annotation.Annotation annotation)Try and create a global restriction from the given annotationjava.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>supportedGlobalAnnotations()Gets a list of annotations that this factory can convert into global restrictions
-
-
-
Method Detail
-
createGlobalRestriction
public GlobalRestriction createGlobalRestriction(java.lang.annotation.Annotation annotation)
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
public java.util.List<java.lang.Class<? extends java.lang.annotation.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
-
-