Re: Application level state
Philippe Marschall <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CA+LFMPhJT5N5Jdvw5N1ci65ZiieceYkorPgW2gt95SS1cv=3OQ@mail.gmail.com> |
On Thu, Jul 20, 2017 at 7:50 PM, Bernhard Pieber <[email protected]> wrote: > Hi Philippe, > > Thanks for the reply. It is the business model of the application. Now I have a class called BpApplicationModel with a class variable default. On my components I have the following method: > > applicationModel > ^BpApplicationModel default > > I want to register the same application twice under different context paths using different BpApplicationModel instances. I could solve this with a dictionary singleton with the WAApplication as the key. However, it seems easier and cleaner if I could implement something like: > > applicationModel > ^self session application model You could try to using the seaside configurations for this. A list attribute with an options block that returns all applications models may do it. As an example have a look at WAExceptionFilterConfiguration. Cheers Philippe _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside