Elad Benda
Elad Benda

Reputation: 36674

AOP snippet: is this Aspectj?

I encountered the following snippet about AOP. Can someone tell me what programming language is that?

  public aspect MyAspect
    {
      // Define a pointcut matched by all methods in the application whose name begins with
      // Get and accepting no arguments. (There are many other ways to define criteria.)
      public pointcut allGetMethods ():
             call (* Get*() );

      // Define an advice to run before any join points that matches the specified pointcut.
      before(): allGetMethods()
      {
        // Do your cross-cutting concern stuff here
        // for example, log about the method being executed
        .
        .
        .
      }
    }

is it AspectJ? or there is no such laguage?

Upvotes: 0

Views: 200

Answers (1)

Don Roby
Don Roby

Reputation: 41135

Yes, this is AspectJ.

Upvotes: 2

Related Questions