Groovy provides Aspect Oriented Programming construct via GroovyInterceptable interface. The concept is as simple as implementing GroovyInterceptable interface and providing a definition for Object invokeMethod(String name, Object args) method as shown below.