chkal / mvc-spec-migration-test

0 stars 0 forks source link

Custom CDI scopes #12

Closed chkal closed 9 years ago

chkal commented 9 years ago

Original issue MVC_SPEC-14 created by Santiago Pericas-Geertsen:

Should MVC support custom CDI scopes like JSF? Or are the existing CDI scopes sufficient for most MVC applications?

chkal commented 9 years ago

Comment by Santiago Pericas-Geertsen:

Conversation scope is now provided by CDI, and thus, it is available to MVC. There's a programmatic API to control it. For more information see:

http://docs.oracle.com/javaee/7/api/javax/enterprise/context/Conversation.html

chkal commented 9 years ago

Comment by Manfred Riem:

Closing this issue as "Complete".

The MVC runtime will leverage the standard CDI scopes and the JSF EG will work on making the Flash and View scope usable by MVC.

If another scope is identified as needed, please file a separate issue to track it.

chkal commented 9 years ago

Comment by Christian Kaltepoth:

Link to the corresponding JSF spec issue: JAVASERVERFACESSPECPUBLIC-1320

chkal commented 9 years ago

Comment by Christian Kaltepoth:

An additional question regarding this: Are there any plans to move the flash scope to the Servlet spec? Or will MVC require an JSF implementation to use the flash scope?