Announcement Announcement Module
Collapse
No announcement yet.
@Aspects not being detected Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Aspects not being detected

    I am using Spring 2.5.4, Spring IDE 2.0.4, and Eclipse 3.2.1. So far I have only been able have the IDE detect advice when configured using the aop namespace in one of my spring config XMLs. When applying the same advice using aspectj style annotations (@Aspect, @Before, etc) it will not detect them. I tried adding a component scan for the aspectj annotation per an older thread but had no success with it either.

    Does the IDE support AspectJ style AOP annotations? If so, is there a sample project or instructions for any special steps to make it work?

    Thanks,

    John

  • #2
    John,

    do you have a bean definition that uses the @Aspect class as bean class. Furthermore you need to have the <aop:aspectj-autoproxy> element in the configuration.

    Let me know if you have those configuration in place.

    Christian

    Comment


    • #3
      I have both of those defined. However, my context is constructed from several config xml's. I have linked all these together as a config set in the IDE.

      What I discovered is that although <aop:aspectj-autoproxy/> is only required in one of them in order to enable the AspectJAwareAdvisorAutoProxyCreator for the entire context, this tag must be present in each config xml in order for the Spring IDE to pick up the annotated @Aspects defined as beans in that config xml.

      Is this the intended behavior or should the scope of the IDE match that of the context at runtime?

      John

      Comment


      • #4
        John,

        that is not intended behavior. Can you please raise a JIRA for this.

        Christian

        Comment

        Working...
        X