Lorenz Quack created QPID-8045:
----------------------------------

             Summary: [Broker-J] Refactor context variables
                 Key: QPID-8045
                 URL: https://issues.apache.org/jira/browse/QPID-8045
             Project: Qpid
          Issue Type: Improvement
          Components: Broker-J
            Reporter: Lorenz Quack


Context variables are heavily used in Qpid Broker-J.
Over the years their implementation and use has grown organically.
Maybe it is time they are refactored.

Some reasons for considering a refactor:
 * boilerplate: Currently a context variable requires quite a lot of 
boilerplate code. A variable for the name and the {{\@ManagedContextDefault}} 
annotated default value, a {{\@DerivedAttribute}} annotated getter for the 
materialized value, a variable to hold the materialized value, the code to 
materialize the context variable.
 * inconsistency: Some context variables are materialized others aren't (i.e., 
change takes effect after restart vs immediately). The point of materialization 
is inconsistent (popular choices being {{onOpen}} and {{postResolve}}). Some 
expose the materialized value through a {{\@DerivedAttribute}} others do not. 
The names of the context variables are sometimes directly on the scattered 
around {{\@ManagedContextDefault}} sometimes on a separate variable.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to