Seam 2.1.0.CR1 Released

Wicket、Identity Management、Excelのサポートなど。

個人的にはRESTeasyのサポートに興味あります。以下のマニュアルの例のように、SeamコンポーネントをRESTfulなリソースとして簡単に公開することができるようになるそうです。

@Name("customerResource")
@Path("/customer")
public class MyCustomerResource {
    @In
    CustomerDAO customerDAO;

    @GET
    @Path("/{customerId}")
    @ProduceMime("text/plain")
    public String getCustomer(@PathParam("customerId") int id) {
         return customerDAO.find(id).getName();
    }
}

よく見ると、プログラムの行数とアノテーションのそれの量がほぼ同じですね(汗)。