Hi,
I am using springframework and i am trying to define some pointcut which doesn't work!!
my Advice is not called....
I have the following pointcut:
<aop: pointcut id="testPointCut" expression="execution(* RetrieveDeviceInfoDL.doService(java.lang.Object))" />
RetrieveDeviceInfoDL.java:
ExternalSystemDataLayerBase.java:Code:class RetrieveDeviceInfoDL extends ExternalSystemDataLayerBase { protected Object doService(Object input) throws ApplicationException { //.... } }ExternalSystemDataLayer.java:Code:public abstract class ExternalSystemDataLayerBase implements ExternalSystemDataLayer { public final Object getData(DataObject input) { Object responseObject = doService(convertToExternal(input)); return responseObject; } }Code:public interface ExternalSystemDataLayer extends DataLayer { public Object getData(DataObject aInputData); }
This is NOT working!!!
however,
if i change the pointcut to the following (a thing that i DO NOT want!!) it works:
<aop: pointcut id="testPointCut" expression="execution(* ExternalSystemDataLayerBase.getData(java.lang.Obje ct))" />
Any ideas?
is there a problem to define a pointcut on a methid that is called "internally" from within the same instance?
Please advice/help ASAP.


Reply With Quote