GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

Verify we don't mention controllers as prototype #87

Open pledbrook opened 10 years ago

pledbrook commented 10 years ago

As of 2.3, Grails controllers are now singletons, so we need to make sure we don't say at any point that they're prototype.

pledbrook commented 10 years ago

We should perhaps mention that injecting request- or session-scoped beans into singleton controllers won't work as expected. This might be a topic for the Spring chapter rather than the early controller one though.