jakartaee / jakartaee/rest

Add superinterface(s) for common property methods

Open
#526 3 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: model api
Dominant language
Java
Stars
400
Forks
143
PR merge metrics
No merged PRs in 30d

Description

The ClientRequestContext, ContainerRequestContext, InterceptorContext, and Configuration interfaces each have getProperty(String) and getPropertyNames() methods and each except Configuration have setProperty(String, Object) and removeProperty(String) methods but they do not each extend any common super-interface(s). As such, code dealing with properties across these interfaces has to be duplicated, work with adapter objects, etc. ![](https://java.net/jira/images/icons/emoticons/sad.gif)

Some common super-interface(s) would be very beneficial. e.g. A Properties interface could contain getProperty(String) and getPropertyNames() and a MutableProperties interface could extend Properties and add setProperty(String, Object) and removeProperty(String)'; ClientRequestContext, ContainerRequestContext, and InterceptorContext could each extend MutableProperties and Configuration could extend Properties.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.