[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1565) error in observer example

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Jun 27 13:35:58 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1565?page=all ]

Pete Muir closed JBSEAM-1565.
-----------------------------

    Fix Version/s: 2.0.0.CR1
       Resolution: Done

Thanks!

> error in observer example
> -------------------------
>
>                 Key: JBSEAM-1565
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1565
>             Project: JBoss Seam
>          Issue Type: Patch
>          Components: Documentation
>    Affects Versions: 1.3.0.ALPHA, 2.0.0.BETA1
>            Reporter: Dan Allen
>         Assigned To: Pete Muir
>            Priority: Trivial
>             Fix For: 2.0.0.CR1
>
>         Attachments: JBSEAM-1565-v1.txt
>
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> The example in the Factory Manager and Components section regarding the HenHouse has several errors.  The first two observer methods make use of a parameter, hen, that is not specified in the method definition.  The last observer method is a duplicate of the first, which would not compile and whose name doesn't make sense in the context anyway.
> The patch included in this report corrects the example so that it appears as such:
> ...
> @Observer({"chickBorn", "chickenBoughtAtMarket"})
> public addHen(Hen hen) {
>     hens.add(hen);
> }
> @Observer("chickenSoldAtMarket")
> public removeHen(Hen hen) {
>     hens.remove(hen);
> }
> @Observer("foxGetsIn")
> public noMoreHens() {
>     hens.clear();
> }
> ...
> By the way, I love this example.  It is fun to read and easy to relate to.  Nice work!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list