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 GlobalRestriction
createGlobalRestriction(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: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
public java.util.List<java.lang.Class<? extends java.lang.annotation.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
-
-