Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6302

config framework: generate overrides for non wrapped values in client interfaces

    Details

    • Type: Task
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: config
    • Labels:
      None

      Description

      Example with ReplicationServerCfgClient):

       ReplicationServerCfgClient rsCfgClient =
       sync.createReplicationServer(ReplicationServerCfgDefn.getInstance(), new ArrayList<>());
       rsCfgClient.setReplicationPort(newValue(replicationPort));
       rsCfgClient.setReplicationServer(asSetOfValueOrExpression(replicationServersLC));
       rsCfgClient.commit();
      

      It would be so much nicer/simpler if the config framework handled all the necessary wrapping into ValueOrExpression objects, so the code simply came back to what it used to be:

       ReplicationServerCfgClient rsCfgClient =
       sync.createReplicationServer(ReplicationServerCfgDefn.getInstance(), new ArrayList<>());
       rsCfgClient.setReplicationPort(replicationPort);
       rsCfgClient.setReplicationServer(replicationServersLC);
       rsCfgClient.commit();
      

      Acceptance criteria

      This task can be closed once clients can configure the server without the need to use ValueOrExpression.newValue() or Expressions.asSetOfValueOrExpression() when only setting values (i.e. not setting expressions).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                JnRouvignac Jean-Noël Rouvignac
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: