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 2014/10/05 20:21:34 UTC

[jira] [Commented] (ISIS-916) Provide a mechanism so that framework-provided services, such as MementoService or BookmarkService, can be overridden by the developer.

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

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

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

ISIS-916: services are injected according to their menuOrder (either @DomainService or with the "1:xxx" syntax)... lowest numbers first.  All framework-provided services have a menuOrder of Integer.MAX_VALUE, so are injected last.

This commit includes an example of how to override the MementoService (within the todoapp).


> Provide a mechanism so that framework-provided services, such as MementoService or BookmarkService, can be overridden by the developer.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-916
>                 URL: https://issues.apache.org/jira/browse/ISIS-916
>             Project: Isis
>          Issue Type: Improvement
>          Components: Add-ons: Module: Command
>    Affects Versions: core-1.6.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: core-1.7.0
>
>
> Required to enable workarounds prior to ISIS-915 being addressed.
> ~~~
> Could be done either by services registered in isis.properties taking precedence over @DomainService, and/or to introduce a "priority" attribute into @DomainService (inspired by something similar I've seen in AngularJS) whereby all framework-provded services are at priority 100 and can be overridden by a services with a higher priority.



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