Alrighty then. objectDefinitionSource is taken care of in the <global-method-security/> tag attributes secured-annotation and/or jsr250-annotations.
Right?
So then in the example tutorial, this entire section:
HTML Code:
<bean id="objectDefinitionSource" class="org.springframework.security.annotation.SecuredMethodDefinitionSource" />
class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor" autowire="byType">
<property name="accessDecisionManager" ref="businessAccessDecisionManager"/>
<property name="afterInvocationManager" ref="afterInvocationManager"/>
<property name="objectDefinitionSource" ref="objectDefinitionSource"/>
</bean>
can be chucked and replaced with:
HTML Code:
<global-method-security
secured-annotations="enabled"
jsr250-annotations="enabled"
access-decision-manager-ref="businessAccessDecisionManager"/>
plus using <security:custom-after-invocation-provider/> for the afterAclRead and afterAclCollectionRead beans as specified above.
Is this correct?