VRaptor2 offers a plugin in order to use @InterceptedBy at method level.
Open your vraptor.xml file and register the plugin:
<vraptor>
<plugin>org.vraptor.plugin.interceptor.MethodInterceptorPlugin</plugin>
</vraptor>@Component
public class PersonLogic {
//we can use @InterceptedBy at method level
@InterceptedBy(TransactionInterceptador.class)
public void addd(Person person) {
System.out.printf("Adding %s to database!\n", person);
}
}