Hello list,

We are making use of @ApplicationState to inject a session object in our various components.

As I understand it, the first time Tapestry finds @ApplicationState it creates an instance of the class we intend to use as a session.

My problem is therefore the following:

In order to reuse code among our various projects, we created a library, lets call it "xyz-foundation" which has some components and business logic shared among all our projects. In this library, we of course defined a class "Session" which is used as the state of the connected user. This Session class contains among other things the current user object, some user rights business logic and many other things shared by all our projects.

Now, in the projects that import that library, I would like to be able to say "my ApplicationState class is a subclass of the Session class defined in the library".
How do I do that.
Some years ago, I did that with WebObjects. We had "SystemFoundation" which has a "Session" class. Then "UserFoundation" which had a UserSession inherit from Session, etc... But with WebObjects it was possible to indicate which class is to be used as a session class.

How can I achieve this in Tapestry? I would need to be able to "inject" the class name to be used in the @ApplicationState instruction. Then, for each different project I could configure my foundations to use the appropriate session class.

Thanks for any hint.

Alex
--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

4 ch. de la Tour de Champel
1206 Geneva
Switzerland

Tel:  022 347 77 37
Fax: 022 347 77 38

http://www.rodanotech.ch




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to