/** * Returns the serializer for a class. * * @param cl the class of the object that needs to be serialized. * @return a serializer object for the serialization. */ public Serializer getSerializer(Class cl) throws HessianProtocolException { Serializer serializer; serializer = (Serializer) _cachedSerializerMap.get(cl); if (serializer != null) { return serializer; } serializer = loadSerializer(cl); _cachedSerializerMap.put(cl, serializer); return serializer; }
/** * Returns the serializer for a class. * * @param cl the class of the object that needs to be serialized. * * @return a serializer object for the serialization. */ public Serializer getSerializer(Class cl) throws HessianProtocolException { Serializer serializer; if (_cachedSerializerMap != null) { serializer = (Serializer) _cachedSerializerMap.get(cl); if (serializer != null) return serializer; } serializer = loadSerializer(cl); if (_cachedSerializerMap == null) _cachedSerializerMap = new ConcurrentHashMap(8); _cachedSerializerMap.put(cl, serializer); return serializer; }
/** * Returns the serializer for a class. * * @param cl the class of the object that needs to be serialized. * * @return a serializer object for the serialization. */ public Serializer getSerializer(Class cl) throws HessianProtocolException { Serializer serializer; if (_cachedSerializerMap != null) { serializer = (Serializer) _cachedSerializerMap.get(cl); if (serializer != null) { return serializer; } } serializer = loadSerializer(cl); if (_cachedSerializerMap == null) _cachedSerializerMap = new ConcurrentHashMap(8); _cachedSerializerMap.put(cl, serializer); return serializer; }