Add documentation for the problem with CustomField encoders for mutable value objects, since we can't really do anything about it.

git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@73 db60a039-f72e-0410-b1d2-baa000846441
This commit is contained in:
chochos
2011-05-20 16:39:31 +00:00
parent a8c2aecd3e
commit 13a04b271a
6 changed files with 158 additions and 7 deletions
@@ -178,6 +178,8 @@ public class MessageFactory {
if (templ != null) {
for (int i = 2; i <= 128; i++) {
if (templ.hasField(i)) {
//We could detect here if there's a custom object with a CustomField,
//but we can't copy the value so there's no point.
m.setField(i, templ.getField(i).clone());
}
}
@@ -64,9 +64,7 @@ public class ConfigParser {
InputStream ins = MessageFactory.class.getClassLoader().getResourceAsStream(path);
MessageFactory mfact = new MessageFactory();
if (ins != null) {
if (log.isDebugEnabled()) {
log.debug("ISO8583 Parsing config from classpath file {}", path);
}
log.debug("ISO8583 Parsing config from classpath file {}", path);
try {
parse(mfact, ins);
} finally {
@@ -207,9 +205,7 @@ public class ConfigParser {
public static void configureFromClasspathConfig(MessageFactory mfact, String path) throws IOException {
InputStream ins = MessageFactory.class.getClassLoader().getResourceAsStream(path);
if (ins != null) {
if (log.isDebugEnabled()) {
log.debug("ISO8583 Parsing config from classpath file {}", path);
}
log.debug("ISO8583 Parsing config from classpath file {}", path);
try {
parse(mfact, ins);
} finally {