[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-1764) If @Factory method is getter and doesn't have "value" then use JavaBean property name as name of context variable for this factory.

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Tue Feb 12 05:25:04 EST 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-1764?page=all ]

Viacheslav Kabanovich resolved JBIDE-1764.
------------------------------------------

    Resolution: Done

> If @Factory method is getter and doesn't have "value" then use JavaBean property name as name of context variable for this factory.
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1764
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1764
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.GA
>            Reporter: Alexey Kazakov
>         Assigned To: Viacheslav Kabanovich
>             Fix For: 2.1
>
>
> For example:
> @Factory()
> public Object getUser() {
> ...
> }
> "user" is a name of context variable for this factory.
> Testcase:
> EXECUTE: Create seam project.
> EXECUTE: Open Authenticator.java
> EXECUTE: Add @Factory() public String getUserName() { return "Vasya Pupkin"; }
> EXECUTE: Open home.xhtml
> EXECUTE: Add #{}
> EXECUTE: Ctrl+Space on #{|
> ASSERT: There is "userName" string among proposals.

-- 
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 jbosstools-issues mailing list