chkal / mvc-spec-migration-test

0 stars 0 forks source link

Discuss anatomy of an MVC Controller #1

Closed chkal closed 9 years ago

chkal commented 9 years ago

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

Out of M, V and C, our biggest challenge is going to be defining exactly what is an MVC controller, and how it relates to JAX-RS resource classes (which have been used as MVC controllers in frameworks like Jersey MVC).

This task will be used to summarize the discussion and, hopefully, the agreed conclusion on how to define an MVC controller. Questions to guide the discussion:

(1) What kind of bean is an MVC controller? E.g., a CDI bean? Should MVC define its own container?

(2) What should be the default scope of an MVC controller? Request scope (like JAX-RS)? Application scope (like Servlet)?

chkal commented 9 years ago

Comment by Santiago Pericas-Geertsen:

MVC controller will be a CDI managed JAX-RS class.