Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Applying Aspects to business applications

Hello,

One possible business "aspect".

I have a Point Of Sale software which allows for many ways of making sales. If I wish to introduce
a discount or a discount scheme, I could define an aspect which captures all sales-making calls
and applies this discount scheme. I could vary the discount, or the discount scheme itself, based
on the customer (loyalty programs), total sales, marked items in the sale etc.

Modeling discount schemes as an aspect allows me to vary the scheme at runtime, transparently and
uniformly apply it across all sales, and make it effective even on yet-to-be-defined sales.

-Balaji


--- John R <john_ela@xxxxxxxxxxx> wrote:
> Hello all,
> 
> I'm not sure if this is the right forum to be asking this question; if there 
> is a better one I would appreciate a pointer to the right discussion group.
> 
> I am learning about AOP and have read through several tutorials and 
> documents.  I'm having a hard time thinking about ways to apply 
> "crosscutting concerns" to handle business logic.  Almost every AOP example 
> discusses the implementation of aspects in logging or enforcing contracts 
> but can anyone give an example of how an aspect can be applied in a way to 
> encapsulate a croscutting business logic concern (rather than an 
> architecture concern like logging)?
> 
> Can anyone think of (or direct me to an article) that discusses the 
> implementation of AOP to handle the business logic of an application rather 
> than the architecture of an application?
> 
> Thanks,
> 
> -John R.
> 
> 
> 
> 
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


Back to the top