You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/05/12 07:00:00 UTC

[jira] [Commented] (ISIS-1149) New ContentNegotiationService and ContentMappingService SPIs for Restful Objects viewer

    [ https://issues.apache.org/jira/browse/ISIS-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14539243#comment-14539243 ] 

ASF subversion and git services commented on ISIS-1149:
-------------------------------------------------------

Commit 1f02eec8a3cf909b94be42efb8437804799b49ce in isis's branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1f02eec ]

ISIS-1149: take-on of the ContentNegotiationService and ContentMappingService.


> New ContentNegotiationService and ContentMappingService SPIs for Restful Objects viewer
> ---------------------------------------------------------------------------------------
>
>                 Key: ISIS-1149
>                 URL: https://issues.apache.org/jira/browse/ISIS-1149
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: core-1.8.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: 1.9.0
>
>
> The ContentNegotiationService SPI allows multiple implementations to be installed, and each are checked in turn (chain of responsibility pattern).  If any can generate a representation of the result then this is used rather than the default RepresentationService.
> The framework provides one default implementation: ContentNegotiationServiceXRoDomainType that handles "application/...;profile=...;x-ro-domain-type=..."  for either XML or JSON, and for the main representations (object, property, collection, detail, action-result)
> As a further sub-SPI, the ContentMappingService is used by the afore-mentioned ContentNegotiationServiceXRoDomainType to attempt to map the result domain object to another object before rendering.  Typically this is to map a domain object to a corresponding DTO.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)