Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] How to access "withincode" type

Title: How to access "withincode" type

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 cant be possible, then is there a way to re-write the above pointcut that limit only JDBC type of profiling.

Thanks,

DP


Back to the top