Announcement Announcement Module
Collapse
No announcement yet.
aop without parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • aop without parameter

    hi

    before to call a function i want to do some validation i do

    Code:
                <aop:pointcut id="validationGetUser" expression="execution(* *..UserFacade.getUser(..)) and args(userId)))"/>
                <aop:before pointcut-ref="validationGetUser" method="getUser"/>
    that work fine...

    what is the correct syntax if the method you want to call have no parameter?

    Code:
                <aop:pointcut id="validationGetUser" expression="execution(* *..UserFacade.getUser(..)) ))"/>
                <aop:before pointcut-ref="validationGetUser" method="getUser"/>
    or


    Code:
                <aop:pointcut id="validationGetUser" expression="execution(* *..UserFacade.getUser()) ))"/>
                <aop:before pointcut-ref="validationGetUser" method="getUser"/>
    or ????
Working...
X