Changeset 87 for branches/objectmqListeners/src/main/java/omq/common/util
- Timestamp:
- 07/29/13 15:53:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmqListeners/src/main/java/omq/common/util/Serializer.java
r62 r87 48 48 try { 49 49 String className = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA); 50 50 51 51 if (className == null || className.isEmpty()) { 52 52 throw new ClassNotFoundException("Class name is null or empty."); 53 53 } 54 54 55 55 serializer = getInstance(className); 56 56 } catch (Exception ex) { … … 62 62 } 63 63 64 public ISerializer getInstance(String type) throws SerializerException { 64 public ISerializer getInstance(String type) throws SerializerException { 65 65 if (KRYO.equals(type)) { 66 66 if (kryoSerializer == null) { … … 79 79 return javaSerializer; 80 80 } 81 82 throw new SerializerException("Serializer not found.");81 82 throw new SerializerException("Serializer '" + type + "' not found"); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.