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

Dan Haywood updated ISIS-1509:
------------------------------
    Description: 
See also ISIS-1993

~~~

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}

  was:
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}



> Extending Action Dialogs: new kind of Support Action to contribute to Action 
> Parameters
> ---------------------------------------------------------------------------------------
>
>                 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
>            Priority: Major
>             Fix For: 1.18.0
>
>         Attachments: Slide1.PNG, Slide2.PNG, Slide3.PNG, factory-methods.pptx
>
>
> See also ISIS-1993
> ~~~
> 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
(v7.6.3#76005)

Reply via email to