Results 1 to 3 of 3

Thread: Sub-classes AutoProxyCreator - SpringIDE AOP support gone

  1. #1
    Join Date
    Sep 2007
    Posts
    9

    Question Sub-classes AutoProxyCreator - SpringIDE AOP support gone

    I had to sub class AnnotationAwareAspectJAutoProxyCreator (to customize selection of proxy mechanism, CGlib vs. JDK proxy).

    I have a bean of my subclass in my Spring AppContext, but Sping IDE does not seem to recognize my subclass as an aspect weaver.

    Any suggestions on how I can tell Spring IDE that my sub class is actually a weaver so that AOP support is enabled in the IDE.

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    the feature you are looking for is currently not available (at least on UI configuration components). Feel free to open a feature request in our JIRA at http://springide.org/jira. I think an extension mechanism makes sense in that case.

    Spring IDE currently doesn't look for sub classes of the AnnotationAwareAspectJAutoProxyCreator because by overriding this class one can totally change the proxing behavior and therefore the AOP support can't tell - for sure - what beans will get advised at runtime....

    As a workaround you can just add the <aop:aspectj-autoproxy /> element to a new configuration file and add the new and your configuration files into a config set.

    Cheers

    Christian
    Last edited by Christian Dupuis; Sep 24th, 2007 at 03:12 AM.
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Sep 2007
    Posts
    9

    Thumbs up It's alive - again!

    Hi Chris,

    your reply makes me feel stupid - because I hadn't thought about this myself. ;-)

    Created an entry in JIRA (IDE-710), but only for doc enhancement. I don't see a way how the IDE could predict the behavior of a custom weaver, so no point in asking for an extension (not going to wish for stuff that cannot be implemented).

    Solution works perfect for me.


    PS: SpringIDE is just monster.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •