Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-292

Add static Instances in SyntaxChecker classes to ease their use

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-RC2
    • 1.0.0
    • None

    Description

      We don't have static instance of {{SyntaxChecker}}s. This is annoying, because we have to dynamically instanciate them when we need to validate a value. Adding something like :

      public class BooleanSyntaxChecker extends SyntaxChecker
      {
          /** A logger for this class */
          private static final Logger LOG = LoggerFactory.getLogger( BooleanSyntaxChecker.class );
          
          /**
           * A public instance of this SyntaxChecker
           */
          public static final BooleanSyntaxChecker INSTANCE = new BooleanSyntaxChecker();
      ...
      

      would help.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: