Re: [Patsystem-users] Is this possible?
Brought to you by:
nthx
|
From: Tomasz N. <Tom...@ii...> - 2005-06-22 23:13:24
|
On the next beautiful day: Wed, 22 June, 2005, Vladimir Atehort=FAa wrote= : > Hello. >=20 Hi Vladimir! > This idea has been haunting me, so I want to share it to see what you t= hink: >=20 > Imagine one has a PAT system, where "business logic" resides where it s= hould: in the methods of the business objects. I call my set of business = objects my "domain model"=20 >=20 > Then I have some objects outside from the domain model (and outside the= pat system), that are interested in the objects inside the domain model.= like: >=20 >=20 > Unfortunately I don't know much about AOP, except from a few articles I= read online and the PAT code itself. >=20 > =BFwhat do you think of this? Well, I think you're becoming "aspectized" :) Before continuing with the topic have a look at JBoss' page about 'Observable" pattern. I think this is what you need. They've implemented the pattern using AOP. I haven't tried it in real life, but was looking at it before.=20 "Observing" concern is orthogonal to persistence (which PAT provides). Hence, I'm not so eager on mering it into PAT (for now). But for you this isn't any problem at all. You may use both together: PAT and Observabble aspect. Any help on that you need - just ask. PAT comes with default <PAT>/etc/your-aspects-here-aop.xml Put your custom aspect configurations (mixins, annotations, ..) there. You will probably have to copy contents of http://wiki.jboss.org/wiki/Wiki.jsp?page=3DGOFObserverableJBossAopXML into your-aspects-here-aop.xml file. The whole page about AOP'ed Observable pattern is here: http://wiki.jboss.org/wiki/Wiki.jsp?page=3DGOFObservable Get back here and tell the story how it worked out. Or if that's not what you need, then I'm open for discussion.. :) Tomasz PS. Few tips about JBossAOP: Tip 1: any annotation you see in the code (@@pat.bo for example) may be moved to configuration file (XML) (and vice-versa) Tip 2: there can be many AOP configuration files Tip 3: 'jboss.aop.path' system variable specifies path to your AOP XML files --=20 _i______'simplicity_is_the_key'__________tomasz_nazar _ii____'i_am_concern_oriented'__________________iiuwr _iii__'patsystem.sf.net'___________________linux_user _Heaven_&_Fellows,_PPP______________________prevayler |