NanoContainer
  1. NanoContainer
  2. NANO-122

StandardMBeanCA does return an incompatible object

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-beta-4
    • Fix Version/s: 1.0-beta-5
    • Component/s: jmx
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The StandardMBeanCA returns a component that is a StandardMBean, but does not implement the management interface. This prevents exposed components to be used as normal components in the application.

      See:

      public void testDefaultComponentAdapterFunctionality() throws Exception

      { WilmaImpl wilma = new WilmaImpl(); ComponentAdapter componentAdapter = new StandardMBeanComponentAdapter(wilma, Wilma.class); picoContainer.registerComponent(componentAdapter); Wilma w = (Wilma)picoContainer.getComponentAdapterOfType(Wilma.class); assertFalse(wilma.helloCalled()); w.hello(); assertTrue(wilma.helloCalled()); }

      The StandardMBeanCA should operate as a delegator for other CAs.

        Activity

        Hide
        Jörg Schaible added a comment -

        Hint: The unit test above will throw a ClassCastException retrieving a Wilma compionent from the pico.

        Show
        Jörg Schaible added a comment - Hint: The unit test above will throw a ClassCastException retrieving a Wilma compionent from the pico.
        Hide
        Jörg Schaible added a comment -

        Dropped StandardMBeanCA completly. Proxy functionality refactored into AssimilatingCA in proxytoys.

        Show
        Jörg Schaible added a comment - Dropped StandardMBeanCA completly. Proxy functionality refactored into AssimilatingCA in proxytoys.
        Jörg Schaible made changes -
        Field Original Value New Value
        Fix Version/s 1.0-beta-5 [ 11369 ]
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: