com.neeve.sma
Class MessageEncodingTypeRegistry

java.lang.Object
  extended by com.neeve.root.RootObject
      extended by com.neeve.sma.SmaObject
          extended by com.neeve.sma.MessageEncodingTypeRegistry

public final class MessageEncodingTypeRegistry
extends SmaObject

The message encoding type registry.

The encoding type registry, a singleton class, stores references to configured encoding types serializers and reflectors. It loads and instantiates serializers and reflectors and serves them out by name and id.

Threading:
The encoding type registry is safe for concurrent access by multiple threads.

Method Summary
static MessageEncodingTypeRegistry getInstance()
          Get the singleton encoding type registry instance.
 MessageReflector getMessageReflector(int encodingTypeId)
          Get an encoding type's message reflector.
 MessageSerializer getMessageSerializer(int encodingTypeId)
          Get an encoding type's message serializer.
 
Methods inherited from class com.neeve.root.RootObject
getChecked, getThreaded, getTracer, setChecked, setTracer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final MessageEncodingTypeRegistry getInstance()
Get the singleton encoding type registry instance.

Threading:
This method is safe for concurrent access by multiple threads

getMessageSerializer

public final MessageSerializer getMessageSerializer(int encodingTypeId)
Get an encoding type's message serializer.

Parameters:
encodingTypeId - The encoding type's unique identifier.
Threading:
This method is safe for concurrent access by multiple threads.

getMessageReflector

public final MessageReflector getMessageReflector(int encodingTypeId)
Get an encoding type's message reflector.

Parameters:
encodingTypeId - The encoding type's unique identifier.
Threading:
This method is safe for concurrent access by multiple threads.


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.