@Test public void testGetSerializer() { ColorSerializer i = new ColorSerializer(); _serializers.registerSerializer(i); Assert.assertNull(_serializers.getSerializer(Point.class)); Assert.assertNotNull(_serializers.getSerializer(Color.class)); }
public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; }
Serializers implements Serializable { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; } }
Serializers implements Serializable { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; } Serializers(); }
Serializers implements Serializable { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; } Serializers(); synchronized void registerSerializer(Serializer serializer); Serializer getSerializer(Class cls); @Override boolean equals(Object o); }
Serializers implements Serializable { public Serializer getSerializer(Class cls) { SerializerWrapper w = getSerializerWrapper(cls); if (w != null) { return w.serializer; } return null; } Serializers(); synchronized void registerSerializer(Serializer serializer); Serializer getSerializer(Class cls); @Override boolean equals(Object o);  }