Here is my pointcut definition

@Pointcut("call(* java.sql.Statement+.execute*(..)) &&
withincode(@com.xyz.Profiling * *(..)) ")

Here is my sample mathod

        @Profiling(type=ProfilingType.JDBC)
            public void makeProfileDataBaseCall() {
                        .............
                CallableStatement statement = connection.prepareCall("{
call PACKAGE.PROCEDURE(?) }");
                statement.execute();
                        ........................
            }

How I can get an instance of "makeProfileDataBaseCall" method and its
annotation?  "joinPoint.getSignature()" gives the "execute" method but
not "makeProfileDataBaseCall" method.

If this can't be possible, then is there a way to re-write the above
pointcut that limit only JDBC type of profiling. 

Thanks,
DP

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to