Interface ArgumentsRestrictionFactory

All Known Implementing Classes:
AllowedValuesRestrictionFactory, MultipleRestrictionFactory, OccurrencesRestrictionFactory, PathRestrictionFactory, PortRestrictionFactory, RangeRestrictionFactory, RequireFromRestrictionFactory, SimpleRestrictionsFactory, StringRestrictionFactory

public interface ArgumentsRestrictionFactory
Interface for arguments restriction factories
  • Method Details

    • createArgumentsRestriction

      ArgumentsRestriction createArgumentsRestriction(Annotation annotation)
      Tries to create an arguments restriction from the given annotation
      Parameters:
      annotation - Annotation
      Returns:
      Arguments restriction or null if this factory cannot create a restriction from the given annotation
    • supportedArgumentsAnnotations

      List<Class<? extends Annotation>> supportedArgumentsAnnotations()
      Gets a list of annotations that this factory can convert into arguments restrictions
      Returns:
      List of supported annotations