aop

Ruby dependency injection libraries.

I've been looking at some Ruby dependency injection libraries. In particularly, I checked out Needle and Copland. They've been around for quite awhile, yet not a lot of usages. What are some of the pros and cons of using these two libraries? It sure seems like a lot of libraries / frameworks out there could make good use of these t...

Any AOP support library for Python ?

I am trying to use some AOP in my Python programming, but I do not have any experience of the various libs that exists. So my question is : What AOP support exists for Python, and what are the advantages of the differents libraries between them ? Edit : I've found some, but I don't know how they compare : Aspyct Lightweight AOP for P...

What is a .NET proxy object in the Inversion of Control / Aspect-Oriented sense?

What is a proxy object in the Inversion of Control / Aspect-Oriented sense? Any good articles on what a proxy object is ? Why you would want to use one ? And how to write one in C# ? ...

Getting the caller to a Spring AOP Proxy

I'm searching for a way of developing a MethodInterceptor which prints the caller class. Is there any way of getting the caller object into the method interceptor? ...

The Spring AOP Proxy that isn't.

I have two Spring proxies set up: <bean id="simpleBean" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="target"> <ref local="simpleBeanTarget"/> </property> <property name="interceptorNames"> <list> <value>cacheInterceptor</value> </list> </property> </bea...

What ever happened to Aspect Oriented Programming?

I remember that in the late 1990s and early 2000s Aspect Oriented Programming (AOP) was supposed to be the "Next Big Thing". Nowadays I see some AOP still around, but it seems to have faded into the background. ...

What is Aspect Oriented Programming?

Duplicate: What is aspect-oriented programming? Every time I here a podcast or read a blog entry about it, even here, they make it sound like string theory or something. Is the best way to describe it OOP with Dependency Injection on steroids? Every time someone tries to explain it, it’s like, Aspects, [Adults from Peanuts Cartoo...

Aspect-oriented programming examples

Can anyone post an example of Aspect-oriented programming (AOP) that is not logging? I've looked at several resources but all the examples are trivial logging. What is it useful for? ...

Aspect-oriented programming in Java

What is the best tool for Java for aspect-oriented programming? The requirements for a tool are of course IDE support, expressiveness and proper documentation. ...

Namespace Organization - AOP Validators

I have started using aspects for parameter validation in our development framework. It works nicely, and I enjoy not littering the first half of a public method with validation code. What I am wondering is if anyone has any recommendations with where in the namespace structure you would place parameter validation? Part of me thinks th...

AOP problem running Spring unit tests

I have a Spring web application which is configured to use JDK proxying for AOP. The AOP annotations (such as @Transactional) are declared on the interfaces, rather than the implementation classes. The application itself works fine, but when I run the unit tests, it seems to be attempting to use CGLIB for the AOP functionality (instead ...

Adding an OnException attribute using PostSharp

I am adventuring into some AOP and it seems with .NET PostSharp is the way to go. I want to do some simple logging to the db when an exception occurs. However I am finding it difficult to find any real solid examples of using PostSharp beyond the basics. I tried the following: [Serializable] public sealed class LogExceptionAttribute :...

AoP on Microsoft Compact Framework 3.5

I've tried with Postsharp, but their current implementation targets 2.0, and it's getting painful to make it work. Should I roll out my own AoP implementation (I'm thinking of a very VERY basic and utilitarian implementation here) Or there is an alternative I'm not aware of? ...

Monitor Usage Statistic-- How it is done?

Windows, Firefox or Google Chrome all monitor usage statistics and analyze the crash reports are sent to them. I am thinking of implementing the same feature into my application. Of course it's easy to litter an application with a lot of logging statement, but this is the approach that I want to avoid because I don't want my code to ha...

Do you use AOP? and what for?

Hi All, I am very interested in Aspect Orientated Programming (Spring, PostSharp etc). I can think of a couple of ways I would employ this, mainly logging or lazy load comes to mind. I was hoping to see what everyone else used it for? Please list out the senarios you solve using AOP. (hopfully it may inspire some one else to pick it u...

Capturing Events For Logging Purpose

When an application is launched, I need to know for certain methods when they are fired. How to do this using attributes and AOP techniques? The simplest way is to record the time in the event method such as this: private void Page_load() { DateTime dt = DateTime.Now; } And save the Datetime into a database. But this is definitely ...

Automatically wrap unit tests in DB transaction?

[Edit (Haren): Duplicate] I'm looking for a way to automatically wrap my NUnit integration tests in a DB transaction, so that changes made by the test are automatically rolled back when the test ends. Ideally, I would decorate certain test methods with a custom attribute that would cause NUnit to create a transaction when the test sta...

Anyone with Postsharp experience in production?

Does anyone out there has used Postsharp AOP framework in production environment? Are there any pitfalls? In order to do some logging etc, can Postsharp be used in conjunction with log4net ? Any tutorials on using Postsharp with Web Apps and/or log4net will be highly appreciated. Thanks In Advance. ...

Spring AOP: applying properties through the aspect

The intent here is to deal with obfuscated passwords for resources. We have an Advisor that intercepts calls to setPassword and decrypts the argument. We've set up a template that looks somewhat like this: <bean id="pwAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor"> <property name="advice"><bean clas...

Performance impact of using aop

We have started to use spring aop for cross cutting aspects of our application (security & caching at the moment). My manager worries about the performance impact of this technology although he fully understands the benefits. My question, did you encounter performance problems introduced by the use of aop (specifically spring aop)? ...