Search:

Type: Posts; User: plethora; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    7
    Views
    1,516

    You need to register the @Aspect class as a bean...

    You need to register the @Aspect class as a bean in the context.
  2. Why not simply use a custom implementation of the...

    Why not simply use a custom implementation of the Pointcut interface?
  3. If i understand you correctly, you could use a...

    If i understand you correctly, you could use a HandlerExceptionResolver for this purpose. See Chapter 13 in the manual.
  4. Replies
    2
    Views
    861

    Spring AOP does not intercept such 'internal'...

    Spring AOP does not intercept such 'internal' calls. The reference manual contains a detailed explanation for this in chapter 6.

    There are various possible solutions for this problem.
  5. Replies
    11
    Views
    5,896

    Can you provide a minimal example (just using a...

    Can you provide a minimal example (just using a static main() to load a context and call a bean) that demonstrates the problem?
  6. Replies
    11
    Views
    5,896

    Not to sound unhelpful, but could you try to make...

    Not to sound unhelpful, but could you try to make the example as minimal as possible?
    If you think it's a Spring AOP problem, removing annotation-driven IoC etc might be a good idea. What version...
  7. Replies
    6
    Views
    1,238

    This might seem an easy answer, but could you try...

    This might seem an easy answer, but could you try switching spring to version 2.0.7?

    A number of generics related AOP issues have been fixed in that release.
  8. Replies
    5
    Views
    1,331

    I think this existing JIRA request is about the...

    I think this existing JIRA request is about the same thing: http://opensource.atlassian.com/projects/spring/browse/SPR-3723
  9. Replies
    5
    Views
    1,331

    Could you provide a link to the part of the...

    Could you provide a link to the part of the documentation that states this?

    As for the difference between @Aspect and Schema styles: it seems that Schema style requires a first parameter of type...
  10. Replies
    5
    Views
    1,331

    1) 'fooName' only applies to the parameter of the...

    1) 'fooName' only applies to the parameter of the intercepted method. "args(name, age)" refers to the advice method only, meaning SimpleProfiler#profile().

    2) Should "argNames" (in annotation...
  11. Replies
    2
    Views
    1,331

    What version of spring are you using?

    What version of spring are you using?
  12. You can use regular Spring IoC to inject a...

    You can use regular Spring IoC to inject a LoggingService into your aspect bean.
  13. How are you instantiating the spring context? A...

    How are you instantiating the spring context? A common mistake is to use of the BeanFactory implementations instead of a full-fledged ApplicationContext.
  14. Replies
    7
    Views
    1,671

    No problem. Making mistakes is human :)

    No problem. Making mistakes is human :)
  15. Replies
    7
    Views
    1,671

    Can you provide a minimal testcase? It would help...

    Can you provide a minimal testcase? It would help if you replaced the <tx:advice> with some custom advice (class implementing MethodInterceptor for example).
  16. Replies
    7
    Views
    1,671

    Hmm, actually it looks like it *is* possible to...

    Hmm, actually it looks like it *is* possible to use 'sort-of parameterized' pointcuts in XML style - contrary to what the manual says.

    I'm not sure why you're seeing multiple calls to your advice...
  17. One obvious trick would be using bootclasspath to...

    One obvious trick would be using bootclasspath to load a patched java.lang.ClassLoader. That has saved my day serveral times.
  18. Why are you using a CGLIB beta? I would swear...

    Why are you using a CGLIB beta?

    I would swear I once knew how to obtain bytecode from a running Sun JVM - but I can't remember anymore. It might have involved using the JVM debug interfaces or...
  19. Replies
    7
    Views
    1,671

    When using the xml style of Spring AOP you cannot...

    When using the xml style of Spring AOP you cannot refer to parameterized pointcuts. Inline the "successfulExecution" pointcut and things will work as expected. :)
  20. Replies
    5
    Views
    1,818

    I was thinking that spring perhaps wanted a...

    I was thinking that spring perhaps wanted a "arg-names" attribute that specified the name of the "JoinPoint"/"ProceedingJoinPoint" parameter. However, it seems not to be the case.

    Can you provide...
  21. Replies
    5
    Views
    1,818

    Add argNames annotation parameter?

    Add argNames annotation parameter?
  22. Replies
    5
    Views
    1,146

    So, it's undocumented in AspectJ as well? :)

    So, it's undocumented in AspectJ as well? :)
  23. Replies
    5
    Views
    1,146

    Yes, obviously aligning the two styles is what...

    Yes, obviously aligning the two styles is what this is all about.

    Let me explain my other question:
    argNames is part of AspectJ 5, for example org.aspectj.lang.annotation.Before declares it as an...
  24. Replies
    5
    Views
    1,146

    So, any news which variation (with or without...

    So, any news which variation (with or without PJP) will be valid?

    Does "core" AspectJ actually specify this, or is it undocumented there as well? :)
  25. Replies
    5
    Views
    1,146

    Schema@Aspect incompatibilities

    I've converted a number of aspects from @Aspect to "schema" style of AOP.
    I was using "argNames" in the Java annotations, and converted that to "arg-names" attributes on <aop:around> etc.

    Most...
Results 1 to 25 of 71
Page 1 of 3 1 2 3