[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-481) Add Reader versions of InfinispanConfiguration factory methods

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Jul 1 07:01:46 EDT 2010


     [ https://jira.jboss.org/browse/ISPN-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani resolved ISPN-481.
--------------------------------

    Resolution: Done


> Add Reader versions of InfinispanConfiguration factory methods
> --------------------------------------------------------------
>
>                 Key: ISPN-481
>                 URL: https://jira.jboss.org/browse/ISPN-481
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Configuration
>    Affects Versions: 4.1.0.BETA2
>            Reporter: Paul Ferraro
>            Assignee: Manik Surtani
>            Priority: Minor
>             Fix For: 4.1.0.CR1, 4.1.0.Final
>
>
> 'Tis a bit awkward/inefficient to parse an Infinispan configuration from a string.
> Currently, I would have to do something like:
> InfinispanConfiguration.newInfinispanConfiguration(new ByteArrayInputStream(config.getBytes()));
> Since we're expecting character data anyway, it would be nice to add reader versions of the factory methods to the api, e.g.
> InfinispanConfiguration.newInfinispanConfiguration(Reader reader)
> That way, I can do:
> InfinispanConfiguration.newInfinispanConfiguration(new StringReader(config));
> The InputStream factory methods can then delegate to the Reader factory methods via InputStreamReader.

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

        


More information about the infinispan-issues mailing list