Class PortRestrictionFactory

    • Constructor Detail

      • PortRestrictionFactory

        public PortRestrictionFactory()
    • Method Detail

      • createOptionRestriction

        public OptionRestriction createOptionRestriction​(java.lang.annotation.Annotation annotation)
        Description copied from interface: OptionRestrictionFactory
        Try and create an option restriction from the given annotation
        Specified by:
        createOptionRestriction in interface OptionRestrictionFactory
        Parameters:
        annotation - Annotation
        Returns:
        Option restriction or null if this factory cannot create a restriction from the given annotation
      • supportedAnnotations

        protected java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedAnnotations()
      • supportedArgumentsAnnotations

        public java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedArgumentsAnnotations()
        Description copied from interface: ArgumentsRestrictionFactory
        Gets a list of annotations that this factory can convert into arguments restrictions
        Specified by:
        supportedArgumentsAnnotations in interface ArgumentsRestrictionFactory
        Returns:
        List of supported annotations
      • supportedOptionAnnotations

        public java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> supportedOptionAnnotations()
        Description copied from interface: OptionRestrictionFactory
        Gets a list of annotations that this factory can convert into option restrictions
        Specified by:
        supportedOptionAnnotations in interface OptionRestrictionFactory
        Returns:
        List of supported annotations