Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-821

Allow mixtures of interfaces and classes in proxys

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proxy.impl-0.4
    • proxy.impl-0.4
    • Proxy
    • None

    Description

      The new interface proxying code is able to create very fast dynamic proxy classes for arbitrary sets of interface (like a better JDK proxy). With a small amount of effort we can also allow this code to specify an arbitrary superclass for the proxy being generated. This will allow us to generate proxys that add interfaces to the class being proxied.

      This may not sound very useful, but it means a blueprint bean Bar, that extends AbstractFoo, and implements Baz, can be exposed as an AbstractFoo and a Baz, but not a Bar. This works even though AbstractFoo does not implement Bar! This is the sort of thing that the blueprint spec was talking about when it says that beans/references should only expose the methods on declared interfaces.

      Attachments

        Activity

          People

            timothyjward Timothy James Ward
            timothyjward Timothy James Ward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: