We are implementing a navigation controller with AOP. This means a
filter cross cuts "after" all
controller methods and tries to capture the returned value from
controller (which in case
would be a memento callback). Navigation filter puts the memento
callback in it's history for later recall.
Here we need to associate a name to our action! So by convention we
decided to use the point cut method name.
for example: "#contactController.list" as: "List Contacts"
In our case, I don't believe our cross cutting concern is depended on
point cuts, but also needs a meta information about them.
One possible workaround here is to return an 'id' OR 'name' from each
controller method via our memento. This way we could have the meta-inf
in our filter, BUT we would be changing our controllers code to
achieve this which is against the AOP philosophy of decoupled
concerns!
On Aug 18, 6:09 am, chris thatcher <
thatcher.christop...@gmail.com>
wrote:
> So I spent a lot of time wrestling with this, and really looking at what AOP
> intends to provide architecturally as a pattern. Without saying it's not
> possible (it may be, but could be expensive), I'm wondering if you had a use
> case that illustrates why this feature would be useful?
>
> The general use of AOP as a pattern usually implies that the filters
> business logic has no dependencies on the specific component of a collection
> of components it has been assigned to cut across. I'm interested in the use
> case so I can understand your needs better.
>
> Thanks,
> Thatcher
>
> On Thu, Aug 12, 2010 at 9:46 AM, chris thatcher <
>
>
>
>
thatcher.christop...@gmail.com> wrote:
> > Actually you are right, its not sufficient. I'll back that out and try a
> > different approach which is hopefully even simpler.
>
> > Thatcher
>
> >> <
jquery-claypool%2Bunsu...@googlegroups.com<
jquery-claypool%252Buns...@googlegroups.com>
> >> <
jquery-claypool%2Bunsu...@googlegroups.com<
jquery-claypool%252Buns...@googlegroups.com>
> Christopher Thatcher