Uploaded image for project: 'Labs (Retired)'
  1. Labs (Retired)
  2. LABS-221

[refactoring] [all] Use cglib MethodInterceptors wherever a string containing a field name, menthod name or similar is currently expected

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • Current
    • Next
    • Magma
    • None

    Description

      Being one of the goals of Magma to offer a system which is at the same time flexible as a dynamic one, but completely compiled, having Strings to denote fields, property or method names is useless. cglib seems to be today the only alternative to dynamic proxies, and the only way when no interfaces are present.

      It is not a complete solution anyway, cause cannot handle casts, but should suffice for 80% of situations. Using a nice combination of CharSequence and syntactic sugar (see JMock and harmcrest), it should be possible to retain compatibility with the String based approach for situations when cglib is not enough.

      Attachments

        Activity

          People

            s.gianni Simone Gianni
            s.gianni Simone Gianni
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: