[
https://jira.jboss.org/jira/browse/DNA-226?page=com.atlassian.jira.plugin...
]
Johnny Verhaeg resolved DNA-226.
--------------------------------
Resolution: Done
Added method create(Iterable<?>) to ValueFactory and a corresponding impl to
AbstractValueFactory. I also added a create(Iterator<?>) impl in
AbstractValueFactory that allowed me to remove the impls in each concrete class.
Value factories should have a create method that takes an un-typed
iterable and returns a typed iterable
--------------------------------------------------------------------------------------------------------
Key: DNA-226
URL:
https://jira.jboss.org/jira/browse/DNA-226
Project: DNA
Issue Type: Feature Request
Components: SPI
Affects Versions: 0.1
Reporter: Johnny Verhaeg
Assignee: Johnny Verhaeg
Fix For: 0.2
This enables the use of the for shorthand. For example:
Property property = ...
ExecutionContext executionContext = ...
ValueFactory<String> stringFactory =
executionContext.getValueFactories().getStringFactory();
for (String token : stringFactory.create(property)) {
...
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira