have a weak memory of reading that property based pointcuts are possible....
but can't find an example online. other than an article which is more geared to annotations (http://www.ibm.com/developerworks/ja...ry/j-aopwork3/) where the author in "Selecting by annotation property" shows the "value" variable in the method equal to a "RequiredNew".
want to do a similar thing whereby i define a pointcut to match not only the method and it's arguments (properties) but also a value of a argument (property). like the following:
<aop: pointcut id="transitory" expression="execution(matrix.cmdb.pojo.Element matrix.cmdb.services.ElementService.setElement(..) ) and args(element)"/>
as
<aop: pointcut id="transitory" expression="execution(matrix.cmdb.pojo.Element matrix.cmdb.services.ElementService.setElement(ele ment.type="environment")) and args(element)"/>
mvh / matthew (28341)


Reply With Quote