Module com.github.rvesse.airline
Interface GlobalRestrictionFactory
-
- All Known Implementing Classes:
StandardGlobalRestrictionsFactory
public interface GlobalRestrictionFactory
Interface for option restriction factories
-
-
Method Summary
All Methods Instance Methods Abstract 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
GlobalRestriction createGlobalRestriction(java.lang.annotation.Annotation annotation)
Try and create a global restriction from the given annotation- Parameters:
annotation
- Annotation- Returns:
- Global restriction or
null
if this factory cannot create a restriction from the given annotation
-
supportedGlobalAnnotations
java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedGlobalAnnotations()
Gets a list of annotations that this factory can convert into global restrictions- Returns:
- List of supported annotations
-
-