You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Kyle Marvin (JIRA)" <be...@incubator.apache.org> on 2004/12/15 23:33:57 UTC
[jira] Commented: (BEEHIVE-137) PropertyMap is an interface
[ http://nagoya.apache.org/jira/browse/BEEHIVE-137?page=comments#action_56742 ]
Kyle Marvin commented on BEEHIVE-137:
-------------------------------------
Ken, I can take this if you want... this is really a docs bug.
BeanPropertyMap is actually the concrete class to use, and there are some other parts of the example (like how discrete properties are set) that are no longer correct.
> PropertyMap is an interface
> ---------------------------
>
> Key: BEEHIVE-137
> URL: http://nagoya.apache.org/jira/browse/BEEHIVE-137
> Project: Beehive
> Type: Bug
> Components: Controls
> Versions: V1Beta
> Reporter: James Song
> Assignee: Kenneth Tam
> Fix For: V1Beta
>
> This causes problems when a user instantiates controls using Controls api, following the sample in ControlProgramming.html:
> http://incubator.apache.org/beehive/controls/controlsProgramming.html#6.2+Programmatic+Instantiation
> Programmatic Instantiation with Properties (Client Code)
> import org.apache.beehive.controls.api.bean.Controls;
> import org.apache.beehive.controls.api.properties.PropertyMap;
> PropertyMap jmsAttr = new PropertyMap(JmsMessageControl.Destination.class);
> jmsAttr.setProperty("name", "InvoiceQueue");
> JmsMessageControlBean myJmsBean = (JmsMessageControlBean)
> Controls.instantiate(
> cl,
> "org.apache.beehive.controls.examples.JmsMessageControlBean",
> jmsAttr
> );
> How do we instantiate a PropertyMap?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira