You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2015/12/29 12:51:49 UTC

[jira] [Updated] (ISIS-1282) Extend @ActionLayout annotation with a routeTo attribute.

     [ https://issues.apache.org/jira/browse/ISIS-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood updated ISIS-1282:
------------------------------
    Fix Version/s:     (was: 1.12.0)
                   1.13.0
      Description: 
This would extend the work started in ISIS-666 (the RoutingService), and extended in ISIS-1286, the idea being to allow the routing strategy to be defined at a more fine-grained level with the action, rather than globally in a service.

Suggest a new attribute "routeTo()" attribute on @ActionLayout, eg:

@ActionLayout(
   routeTo=RouteToThis.class
)
public void foo() { ... }

where:

public class RouteToThis implements ActionRouter {
     public boolean canRoute(Object original);
     public Object route(Object original);
}

If present then the RoutingService would instantiate and delegate to this router object.


Note that the attribute is on @ActionLayout rather than @Action because this is a UI concern only.

  was:
This would extend the work started in ISIS-666 (the RoutingService), allowing the default strategy to recognize and honour a new attribute "routeTo()" attribute, eg:

@Action(
   routeTo=RouteToThis.class
)
public void foo() { ... }

where:

public class RouteToThis implements ActionRouter {
     public boolean canRoute(Object original);
     public Object route(Object original);
}

If present then the RoutingService would instantiate and delegate to this router object.

          Summary: Extend @ActionLayout annotation with a routeTo attribute.  (was: Extend @Action annotation with a routeTo attribute.)

> Extend @ActionLayout annotation with a routeTo attribute.
> ---------------------------------------------------------
>
>                 Key: ISIS-1282
>                 URL: https://issues.apache.org/jira/browse/ISIS-1282
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.10.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Minor
>             Fix For: 1.13.0
>
>
> This would extend the work started in ISIS-666 (the RoutingService), and extended in ISIS-1286, the idea being to allow the routing strategy to be defined at a more fine-grained level with the action, rather than globally in a service.
> Suggest a new attribute "routeTo()" attribute on @ActionLayout, eg:
> @ActionLayout(
>    routeTo=RouteToThis.class
> )
> public void foo() { ... }
> where:
> public class RouteToThis implements ActionRouter {
>      public boolean canRoute(Object original);
>      public Object route(Object original);
> }
> If present then the RoutingService would instantiate and delegate to this router object.
> Note that the attribute is on @ActionLayout rather than @Action because this is a UI concern only.



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