Ticket #697 (closed Enhancement: fixed)
Remove "Directives" parameter from Core API
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.4 |
Component: | DeepaMehta Standard Distribution | Version: | 4.3 |
Keywords: | Cc: | dgf, Malte, carolina | |
Complexity: | 5 | Area: | Application Framework / API |
Module: | deepamehta-core |
Description
The Directives parameter is omnipresent in the Core API and makes it harder to use and error prone. The developer should not be required to create/pass/manipulate any Directives. Actually building the directives is clerical bookkeeping work and could be handled automatically by the Core in most cases.
The Directives parameter should be completely removed from the Core API. Instead the Core should hold a Directives object in a thread-local variable and maintain it on a per-request basis.
Change History
comment:2 Changed 10 years ago by Jörg Richter
Core API: remove Directives parameter, pt1 (#697).
BREAKING CHANGE
The Directives parameter is about being completely removed from the Core API.
Already removed from deletion-related Core Service calls and corresponding event listeners.
There is a new static method to get the Directives object for the current request (however most plugins will not need it):
Directives.get()
Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.
See #697.
comment:3 Changed 10 years ago by Jörg Richter
comment:4 Changed 10 years ago by Jörg Richter
Core API: remove Directives parameter, pt1 (#697).
BREAKING CHANGE
The Directives parameter is about being completely removed from the Core API.
Already removed from deletion-related Core Service calls and corresponding event listeners.
There is a new static method to get the Directives object for the current request (however most plugins will not need it):
Directives.get()
Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.
See #697.
comment:5 Changed 10 years ago by Jörg Richter
comment:6 Changed 10 years ago by Jörg Richter
Core API: remove Directives parameter, pt1 (#697).
BREAKING CHANGE
The Directives parameter is about being completely removed from the Core API.
Already removed from deletion-related Core Service calls and corresponding event listeners.
There is a new static method to get the Directives object for the current request (however most plugins will not need it):
Directives.get()
Internally the Core maintains the Directives object in a thread-local variable, and removes it once a Jersey request is processed.
See #697.