[JBoss JIRA] Created: (DNA-82) Break TextEncoder interface into two interfaces: one for encoding and one for decoding
by Randall Hauch (JIRA)
Break TextEncoder interface into two interfaces: one for encoding and one for decoding
--------------------------------------------------------------------------------------
Key: DNA-82
URL: http://jira.jboss.com/jira/browse/DNA-82
Project: DNA
Issue Type: Task
Components: Common
Reporter: Randall Hauch
Assigned To: Randall Hauch
Fix For: 0.2
Currently, the org.jboss.dna.common.text.TextEncoder interface has two methods: encode(String):String and decode(String):String. Using a single reference to a TextEncoder (often times for decoding purposes) is confusing and relies upon documentation or parameter naming to make the purpose clear. It would be better to have a separate TextEncoder and TextDecoder interfaces, and to use those interfaces in the appropriate places. In some (rare?) situations where an encoder and decoder are required, two parameters or member attributes will be required. Overall, this should be an improvement.
The current implementations (JCR, URL, NoOp) can all just implement both interfaces.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 10 months