Hello,
Lance has commented on
http://tapestry.apache.org/defining-tapestry-ioc-services.html.
You can find the comment here:
http://tapestry.apache.org/defining-tapestry-ioc-services.html#comment_2684
Please note that if the comment contains a hyperlink, it must be approved
before it is shown on the site.
Below is the reply that was posted:
~~~~
This can be as follows
public static MyService buildMyService(PerthreadManager ptm) {
final MyService service = new MyServiceImpl();
ptm.addThreadCleanupListener(new ThreadCleanupListener() {
public void threadDidCleanup() {
service.close();
}
});
return service;
}
~~~~
With regards,
The Apache Tapestry Project.
You are receiving this email because you have subscribed to changes for the
tapestry site.
To stop receiving these emails, unsubscribe from the mailing list that is
providing these notifications.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]