Details
-
Type: Bug
-
Status: Closed
-
Priority: 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 :
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
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 ] |
Hint: The unit test above will throw a ClassCastException retrieving a Wilma compionent from the pico.