[nanocontainer-scm] [jira] Commented: (NANO-122) StandardMBeanCA does return an incompatible object
jira-yCVjj/[email protected] Thu, 10 Feb 2005 04:44:19 -0500 (EST)
| Newsgroups | gmane.comp.java.nanocontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
The following comment has been added to this issue:
Author: Joerg Schaible
Created: Thu, 10 Feb 2005 4:43 AM
Body:
Hint: The unit test above will throw a ClassCastException retrieving a Wilma compionent from the pico.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/NANO-122?page=comments#action_29740
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/NANO-122
Here is an overview of the issue:
---------------------------------------------------------------------
Key: NANO-122
Summary: StandardMBeanCA does return an incompatible object
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NanoContainer
Components:
jmx
Versions:
1.0-beta-4
Assignee: Joerg Schaible
Reporter: Joerg Schaible
Created: Thu, 10 Feb 2005 4:42 AM
Updated: Thu, 10 Feb 2005 4:43 AM
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira