Announcement Announcement Module
Collapse
No announcement yet.
Pointcut syntax with polymorphism Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pointcut syntax with polymorphism

    I have a class ToyManager with two methods: insertCar and insertBall. The pointcut is defined below:

    <bean id="modelSecurityInterceptor" class="net.sf.acegisecurity.intercept.method.aopal liance.MethodSecurityInterceptor">
    <property name="authenticationManager"><ref bean="modelAuthenticationManager"/></property>
    <property name="accessDecisionManager"><ref bean="httpRequestAccessDecisionManager"/></property>
    <property name="objectDefinitionSource">
    <value>
    ToyManager.insertCar=ROLE_CAR
    ToyManager.insertBall=ROLE_BALL
    </value>
    </property>
    </bean>

    I want to use polymorphism. Changing method signatures, the methods become insert, with different arguments: insert(Car car) and insert(Ball ball). How can I rewrite the pointcut above to use polymorphism?
Working...
X