Reputation: 36674
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