]
Manik Surtani updated ISPN-481:
-------------------------------
Fix Version/s: 4.1.0.CR1
4.1.0.Final
Complexity: Low
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: