Questions tagged [aspect-oriented]

Aspect oriented refers to the expression of event-driven programming through the use of callback functions or other means to respond to a local event that has global consequences without going through repetitive conditional checks or creating unnecessary dependencies between objects or subroutines.

Filter by
Sorted by
Tagged with
2 votes
0 answers
37 views

Collect messages from a job to send in body of one email

I have a Spring service that calls a few methods to ...
  • 299
1 vote
1 answer
41 views

Aspect-oriented vs explicit style in Python [closed]

Readability counts, but is very subjective. The following snippets are equivalent in functionality and turn a generator iterator into a chunked HTTP response in Flask. Which of those two patterns is ...
4 votes
0 answers
73 views

JavaScript attempt at an aspect oriented logger using proxies and reflect

I've been playing around with AOP in JavaScript to create a Logger that I can attach to classes and output what is going on (mainly instantiation, calling of functions and the results from functions). ...
  • 329
1 vote
1 answer
5k views

Spring AOP Log4j Logger example, improvement

I went through some of the stuffs on net regarding spring AOP and wrote a Spring AOP logger. Can you guys check my code and give your valuable inputs to improve it or if it is not proper, give me an ...
1 vote
0 answers
530 views

AspectJ aspect for securing controller methods with ReCaptcha

Today when I was implementing ReCaptcha (as if there is much to implement!), I thought it would be perfect to create an Aspect Annotation to automatically secure web methods with recaptcha. My ...
  • 473
2 votes
1 answer
3k views

Logging and profiling - automatic logging through annotations

I am working with a little project intended to allow applications to benefit from aspect oriented programming. The first aspect is logging, which is already working. However I want this code to be ...
12 votes
1 answer
706 views

Trampoline Interceptor

Aim In C#, the following method will cause a StackOverFlowException if called with parameter 0: ...
  • 5,734
13 votes
1 answer
7k views

Inject dependency into PostSharp aspect

I have designed couple of aspects using PostSharp for different projects, but there is a design flaw in many of them: dependency management. This is a question about injection of dependencies into ...
  • 475