Search:

Type: Posts; User: denis.zhdanov; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Sure, spring documentation contains information...

    Sure, spring documentation contains information about that - 7.2.3.4. Examples
  2. Hello, 7.2.4.3. After throwing advice...

    Hello,

    7.2.4.3. After throwing advice.

    Probably you'll need aspectj weaving as well in order to be able to perform really global handling.
  3. Replies
    2
    Views
    812

    Hi sousaina, I see two ways to go: Provide...

    Hi sousaina,

    I see two ways to go:

    Provide advice with joint point parameters and perform filtering inside advice code - 7.2.4.6. Advice parameters;
    Use AspectJ weaving and expoit 'if'...
  4. I tried your example and all tests are passed.

    I tried your example and all tests are passed.
  5. Replies
    11
    Views
    4,033

    Direct binding of method parameter annotation is...

    Direct binding of method parameter annotation is not supported by AspectJ at the moment. Hence, we can use clumsy code like the one below:



    package com.spring.example.aop;

    import...
  6. So, is everything ok now?

    So, is everything ok now?
  7. Hi MSahmud, The actions you described are fine...

    Hi MSahmud,

    The actions you described are fine for solving your task. The only note is that you can use 'After' advice instead of 'Around'.

    What kind of help are you asking for with that?
  8. Am I right understanding that you want to...

    Am I right understanding that you want to intercept calls to 'BusinessService.requestProcessed()' and proceed them even if exception is thrown? You need to use 'around advice' if so.
  9. He is talking about aspectj weaving. Feel free to...

    He is talking about aspectj weaving. Feel free to read more on that here - Weaving with AspectJ
  10. Replies
    4
    Views
    4,384

    Hi Peders, Spring resolves type arguments only...

    Hi Peders,

    Spring resolves type arguments only for collections and arrays at the moment. Another limitation is that it looks at one level only. I created enhanced generics autowiring patch and...
  11. Replies
    4
    Views
    1,161

    Hi Isaac, Sorry but your question doesn't...

    Hi Isaac,

    Sorry but your question doesn't allow to reproduce the problem at local environemnt, hence, provide a solution to it. Please prepare minimal but complete standalone example that...
  12. Please check corresponding spring reference...

    Please check corresponding spring reference section - 7. Aspect Oriented Programming with Spring and let us know if you have any concrete questions about spring aop programming.
  13. Replies
    2
    Views
    638

    TransactionAspectSupport.currentTransactionStatus(...

    TransactionAspectSupport.currentTransactionStatus().setRollbackOnly()
  14. You can do that easily, however, there is a...

    You can do that easily, however, there is a special use-case when spring fails to perform aop - Using Spring AOP with aspectj-compiled aspects.

    About how to perform aspectj weaving (either...
  15. Thread: Aop

    by denis.zhdanov
    Replies
    1
    Views
    759

    Sorry, but the question is unclear.

    Sorry, but the question is unclear.
  16. You should realise that it's rather complex task...

    You should realise that it's rather complex task because 'time inside method' may be affected by another concurrent thread or process that is granted system resources. I.e. it's better to use...
  17. This is example of 'self-call' - very popular...

    This is example of 'self-call' - very popular problem. I described it in details here - Spring AOP top problem #1 - aspects are not applied
  18. execution(* execute(..)) &&...

    execution(* execute(..)) && within(ccom.pros.inrm.poc.*)

    Pointcut above works for me. Create minimal but complete standalone example that illustrates the problem and post it here if you want to...
  19. Just replace definition of concrete interface...

    Just replace definition of concrete interface with the package-wide expression
  20. Replies
    3
    Views
    863

    You can help yourself by reading the chapter...

    You can help yourself by reading the chapter referenced at my previous answer. It contains all necessary documentation and code snippets.
  21. Sorry, didn't notice that on first sight. Just...

    Sorry, didn't notice that on first sight.

    Just checked your use-case - class name externalization via PPC works fine for me.
  22. Have you tried PPC - 3.8.2.1 Example: the...

    Have you tried PPC - 3.8.2.1 Example: the PropertyPlaceholderConfigurer?
  23. Replies
    2
    Views
    638

    I think it's better to create dedicated JIRA...

    I think it's better to create dedicated JIRA ticket for that.
  24. Replies
    3
    Views
    1,095

    Pointcut 'execution(* *.perform(..))' matches all...

    Pointcut 'execution(* *.perform(..))' matches all methods named 'perform()' of classed from default package. I assume that your 'Performer' class belongs to the 'learn.spring.implementations' package...
  25. I'd suggest servlet specification...

    I'd suggest servlet specification - 'SRV.9.5 Directory Structure' in order to understand java web app assembly organization.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4