[nanocontainer-scm] [jira] Updated: (NANO-139) Workaround for illegal bean properties in XML Configuration

"Mauro Talevi (JIRA)" <jira-yCVjj/[email protected]> Sat, 11 Jun 2005 19:56:42 -0500 (CDT)
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <9672919.1118537802823.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/NANO-139?page=all ]

Mauro Talevi updated NANO-139:
------------------------------

    Fix Version: 1.0
      Component:     (was: core)
                 xml

> Workaround for illegal bean properties in XML Configuration
> -----------------------------------------------------------
>
>          Key: NANO-139
>          URL: http://jira.codehaus.org/browse/NANO-139
>      Project: NanoContainer
>         Type: Improvement
>   Components: xml
>     Versions: 1.0-beta-5
>     Reporter: Michael Rimov
>     Priority: Minor
>      Fix For: 1.0
>  Attachments: BeanComponentInstanceFactory.zip
>
>
> As per discussion on mailing list.
> <java.text.SimpleDateFormat>
>     <lenient>false</lenient>
>     <2DigitYearStart>date</2DigitYearStart>
> </java.text.SimpleDateFormat>
> Won't parse due to the '2' at the beginning of 2DigitYearStart. 
> I added a 'map-to' property in org.nanocontainer.script.xml.BeanComponentInstanceFactory that when present allows for such mapping.  So the following would be applicable:
> <java.text.SimpleDateFormat>
>     <lenient>false</lenient>
>     <yearStart map-to='2DigitYearStart'>date</yearStart>
> </java.text.SimpleDateFormat>
> HTH!
> -Mike (R)

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira