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

"Michael Rimov (JIRA)" <jira-yCVjj/[email protected]> Sat, 11 Jun 2005 07:16:42 -0500 (CDT)
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <21059742.1118492202649.JavaMail.haus-jira@codehaus01.managed.contegix.com>
Workaround for illegal bean properties in XML Configuration
-----------------------------------------------------------

         Key: NANO-139
         URL: http://jira.codehaus.org/browse/NANO-139
     Project: NanoContainer
        Type: Improvement
  Components: core  
    Versions: 1.0-beta-5    
    Reporter: Michael Rimov
    Priority: Minor
 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