[JBoss JIRA] (ISPN-11935) Add REST resource util class
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11935?page=com.atlassian.jira.plugi... ]
Ryan Emerson updated ISPN-11935:
--------------------------------
Status: Open (was: New)
> Add REST resource util class
> ----------------------------
>
> Key: ISPN-11935
> URL: https://issues.redhat.com/browse/ISPN-11935
> Project: Infinispan
> Issue Type: Enhancement
> Components: REST
> Affects Versions: 11.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> Currently the REST resource classes have a lot of duplicated code for common tasks, such as converting an object to JSON. We should introduce a package-private {{ResourceUtil}} class to provide a single location for these operations.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11935) Add REST resource util class
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-11935:
-----------------------------------
Summary: Add REST resource util class
Key: ISPN-11935
URL: https://issues.redhat.com/browse/ISPN-11935
Project: Infinispan
Issue Type: Enhancement
Components: REST
Affects Versions: 11.0.0.CR1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Fix For: 11.0.0.Final
Currently the REST resource classes have a lot of duplicated code for common tasks, such as converting an object to JSON. We should introduce a package-private {{ResourceUtil}} class to provide a single location for these operations.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11934) Remove ServerResource.ServerInfo to avoid unnecessary reflection
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11934?page=com.atlassian.jira.plugi... ]
Ryan Emerson updated ISPN-11934:
--------------------------------
Summary: Remove ServerResource.ServerInfo to avoid unnecessary reflection (was: Remove ServerResource.ServerInfo to avoid reflection)
> Remove ServerResource.ServerInfo to avoid unnecessary reflection
> ----------------------------------------------------------------
>
> Key: ISPN-11934
> URL: https://issues.redhat.com/browse/ISPN-11934
> Project: Infinispan
> Issue Type: Enhancement
> Components: REST
> Affects Versions: 11.0.0.CR1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.0.Final
>
>
> {{ServerResource.ServerInfo}} is converted by Jackson to JSON in order to return the Infinispan version, however as no other information is required it's possible to simply return a JSON string directly. This avoids Jackson performing reflection and means less metadata required for the native server build.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months
[JBoss JIRA] (ISPN-11934) Remove ServerResource.ServerInfo to avoid reflection
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-11934:
-----------------------------------
Summary: Remove ServerResource.ServerInfo to avoid reflection
Key: ISPN-11934
URL: https://issues.redhat.com/browse/ISPN-11934
Project: Infinispan
Issue Type: Enhancement
Components: REST
Affects Versions: 11.0.0.CR1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Fix For: 11.0.0.Final
{{ServerResource.ServerInfo}} is converted by Jackson to JSON in order to return the Infinispan version, however as no other information is required it's possible to simply return a JSON string directly. This avoids Jackson performing reflection and means less metadata required for the native server build.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 7 months