Announcement Announcement Module
Collapse
No announcement yet.
Pointcut.getClassFilter never called Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pointcut.getClassFilter never called

    Hi all,

    I am moving from Spring 2.0 to 2.5, and now all my aspect doesn't works.
    My PointCut are instanciated but the method getClassFilter and getMethodFilter are never called.

    see below the classes :
    Code:
    public class AnnotationPointcut implements Pointcut
    {
       private Class<? extends Annotation> annotation;
    
       public void setAnnotation( Class< ? extends Annotation > annotation )
       {
          this.annotation = annotation;
       }
          
       public ClassFilter getClassFilter()
       {
          return ClassFilter.TRUE;
       }
    see below the XML config file:
    Code:
    	<!--  Memcached -->
    	<bean id="memcachedAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor">
    		<property name="advice">
    			<bean class="com.toto.aop.memcached.MemcachedAdvice">
    				<property name="totoMemcachedClient" ref="totoMemcachedClient"/>
    			</bean>
    		</property>
    		<property name="pointcut">
    			<bean class="com.toto.aop.AnnotationPointcut">
    				<property name="annotation" value="com.toto.aop.annotation.MemcachedAnnotation"/>
    			</bean>
    		</property>
    	</bean>
    thanks,.

    --
    Julien-

  • #2
    The mentioned configuration is incomplete. You just showed a configuration snippet that uses spring 1.x AOP API.

    If you want to get help provide complete standalone test-case that illustrates the problem.

    Comment


    • #3
      In fact I have just update from Spring 2 to Spring 2.5

      It worked on Spring 2 not in Spring 2.5, so you mean that this configuration is not supported on Spring 2.5?

      Comment


      • #4
        Originally posted by jujuz View Post
        In fact I have just update from Spring 2 to Spring 2.5

        It worked on Spring 2 not in Spring 2.5, so you mean that this configuration is not supported on Spring 2.5?
        I mean that you provided config snippet that is not enough to answer why you don't have the expected behavior.

        Comment


        • #5
          Resolved:

          RESOLVED:

          During a subversion merge, the line <aop:aspectj-autoproxy/> was forgiven !

          Comment

          Working...
          X