You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "James Song (JIRA)" <be...@incubator.apache.org> on 2004/12/15 20:37:02 UTC
[jira] Created: (BEEHIVE-137) PropertyMap is an interface
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
Assigned to: 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
[jira] Updated: (BEEHIVE-137) References to PropertyMap in docs should be to BeanPropertyMap
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://nagoya.apache.org/jira/browse/BEEHIVE-137?page=history ]
Kenneth Tam updated BEEHIVE-137:
--------------------------------
Summary: References to PropertyMap in docs should be to BeanPropertyMap (was: PropertyMap is an interface)
Component: Documentation
(was: Controls)
Yup, this is a docs issue. James, if you look at the example test case I checked in at the same time as the code, you can see usage of BeanPropertyMap there.
> References to PropertyMap in docs should be to BeanPropertyMap
> --------------------------------------------------------------
>
> Key: BEEHIVE-137
> URL: http://nagoya.apache.org/jira/browse/BEEHIVE-137
> Project: Beehive
> Type: Bug
> Components: Documentation
> 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
[jira] Closed: (BEEHIVE-137) References to PropertyMap in docs should be to BeanPropertyMap
Posted by "Krista Baker (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-137?page=all ]
Krista Baker closed BEEHIVE-137:
--------------------------------
Assign To: Krista Baker (was: James Song)
The documentation has been updated, the (Client Code) now reads:
import org.apache.beehive.controls.api.bean.Controls;
import org.apache.beehive.controls.api.properties.PropertyKey;
import org.apache.beehive.controls.api.properties.PropertyMap;
import org.apache.beehive.controls.api.properties.BeanPropertyMap;
PropertyMap jmsAttr = new BeanPropertyMap(JmsControl.Destination.class);
jmsAttr.setProperty(new PropertyKey(JmsControl.Destination.class, "name"), "InvoiceQueue");
JmsMessageControlBean myJmsBean = (JmsMessageControlBean)
Controls.instantiate(cl,
"org.apache.beehive.controls.examples.JmsMessageControlBean", jmsAttr);
Verified using current beehive docs online:
http://incubator.apache.org/beehive/controls/controlsProgramming.html
> References to PropertyMap in docs should be to BeanPropertyMap
> --------------------------------------------------------------
>
> Key: BEEHIVE-137
> URL: http://issues.apache.org/jira/browse/BEEHIVE-137
> Project: Beehive
> Type: Bug
> Components: Documentation
> Versions: V1Beta
> Reporter: James Song
> Assignee: Krista Baker
> 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://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (BEEHIVE-137) References to PropertyMap in docs should be to BeanPropertyMap
Posted by "Kyle Marvin (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-137?page=history ]
Kyle Marvin resolved BEEHIVE-137:
---------------------------------
Assign To: James Song (was: Kenneth Tam)
Resolution: Fixed
Beta docs (including the fix) can be found at:
http://incubator.apache.org/beehive/v1beta/controls/controlsProgramming.html
> References to PropertyMap in docs should be to BeanPropertyMap
> --------------------------------------------------------------
>
> Key: BEEHIVE-137
> URL: http://issues.apache.org/jira/browse/BEEHIVE-137
> Project: Beehive
> Type: Bug
> Components: Documentation
> Versions: V1Beta
> Reporter: James Song
> Assignee: James Song
> 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://issues.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
[jira] Commented: (BEEHIVE-137) PropertyMap is an interface
Posted by "Kyle Marvin (JIRA)" <be...@incubator.apache.org>.
[ 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