Dan Haywood created ISIS-1282:
---------------------------------

             Summary: Extend @Action 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.12.0


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.



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

Reply via email to