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

Oscar Bou commented on ISIS-1509:
---------------------------------

Hi Dan,

It's a long-time feature we implemented in our custom viewer.

It should be stateless the way we plan to use it, so I suppose that yes, it 
should be implemented only on domain services, not depending on any given 
domain entity instance.

They could also be contributed.

The final idea we commented when done was to be able to add something like a 
"+" button near any property or near any action's param when they belong to a 
Domain Entity type, allowing to create one new domain entity instance right 
then, invoking the action's modal dialog, avoiding context switching.

It sounds me you told me to implement the facet before you could advance on the 
UI (but not sure; it was quite time ago).


Cheers,

Oscar

> Allow Factory Methods to be defined
> -----------------------------------
>
>                 Key: ISIS-1509
>                 URL: https://issues.apache.org/jira/browse/ISIS-1509
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.13.0
>            Reporter: Oscar Bou
>             Fix For: 2.2.0
>
>
> Factory Methods should be able to be identified as that.
> It could be useful, for example, when executing any action.
> For any param of any type, Apache Isis could offer the option to create a new 
> instance by executing an action that both return that type and has been 
> identified as a Factory Method.
> An example of defining a Factory Method could be:
> {code:java}
> class Concert {
>     @Action(factoryMethod=true)
>     public Concert someAction() {
>           return new Concert();
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to