Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-10

Add ability to access a bean instance from a proxy

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • 2.1 (Discussion)
    • 1.0
    • Beans

      There are occasions when it would be useful to access a bean instance directly from a proxy. This could be achieved by making all proxies assignable to an interface (say BeanProxy) that provides a getBeanInstance() method.
      Client code that needs access to the actual instance can check if the object is assignable to the BeanProxy interface and then call getBeanInstance() to get the actual instance if required.

      This is something that is probably more useful to extension writers than the end user, but there have already been a few requests on the weld forum about this so it is probably worth considering.

            Unassigned Unassigned
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            7 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: