Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
35 views

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

I have a Spring service that calls a few methods to ...
user avatar
  • 299
1 vote
1 answer
39 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 ...
user avatar
4 votes
0 answers
70 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). ...
user avatar
  • 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 ...
user avatar
1 vote
0 answers
510 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 ...
user avatar
  • 473
2 votes
1 answer
2k 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 ...
user avatar
12 votes
1 answer
677 views

Trampoline Interceptor

Aim In C#, the following method will cause a StackOverFlowException if called with parameter 0: ...
user avatar
  • 5,714
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 ...
user avatar
  • 475