Earthly Powers

Friday Sep 07, 2007

Life cycle

Making it easy for developers to understand the life-cycle of Java objects and manage state when programming RESTful Web services is very important, which is why the JSR 311 expert group decided that a per-request life-cycle should be the default for JAX-RS.

Marc's recent changes to the trunk of Jersey (0.3) implement such life-cycle support amongst other related aspects, such as way for developers to plug in their own life-cycle and resource management.

You can find more in Marc's blog entry on the subject, and as you will hopefully agree the per-request life-cycle with non-empty constructors creates a very nice and simple way to develop services.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed