It's a teoretical question.
When say you have some classes and they all call the method com.package.Authentification->isAuthentificated() at the begining(lets really go extreme) of every method in all the classes.
Is the repeating call of that method acros those classes itself a crosscutting-concern? It's something abstract that the programer doesn;t need to know how it works and put "nicely" into an OOP construct, but it doesn;t have nothing to do with the bussines logic of any class, so it would be more logic to not be there at all.
-
AOP:could the invocation of a method be considered a crosscutt (2 messages)
- Posted by: Gigel Patratel
- Posted on: May 30 2005 18:08 EDT
Threaded Messages (2)
- AOP:could the invocation of a method be considered a crosscutt by Stephane Vaucher on May 31 2005 11:25 EDT
- Thanks by Gigel Patratel on June 01 2005 03:38 EDT
-
AOP:could the invocation of a method be considered a crosscutt[ Go to top ]
- Posted by: Stephane Vaucher
- Posted on: May 31 2005 11:25 EDT
- in response to Gigel Patratel
Normally, you could have a module that takes care of authentification that is separate from your business logic. To combine these two modules, it becomes (often) a case of copy-pasting the authentification code into your business logic (and possibly else where). That is a cross-cutting concern, as the authentication concern is present in multiple areas of another concern (business logic in this case).
sv -
Thanks[ Go to top ]
- Posted by: Gigel Patratel
- Posted on: June 01 2005 03:38 EDT
- in response to Stephane Vaucher
Yeah, it does seem so. Thanks.