if (entry.getKey().isInterface())
_serializerInterfaceMap.put(entry.getKey(), ser);
else
_serializerClassMap.put(entry.getKey().getName(), ser);
} catch (Exception e) {
throw new HessianException(e);
}
}
classMap = new HashMap<Class,Class>();
initSerializerFiles("META-INF/hessian/deserializers",
_deserializerFiles,
classMap,
Deserializer.class);
for (Map.Entry<Class,Class> entry : classMap.entrySet()) {
try {
Deserializer ser = (Deserializer) entry.getValue().newInstance();
if (entry.getKey().isInterface())
_deserializerInterfaceMap.put(entry.getKey(), ser);
else {
_deserializerClassMap.put(entry.getKey().getName(), ser);
}
} catch (Exception e) {
throw new HessianException(e);
}
}
}