org.sandev.basics.nodecommon
Class CharSerializerFactory

java.lang.Object
  extended by org.sandev.basics.nodecommon.CharSerializerFactory

public class CharSerializerFactory
extends java.lang.Object

Provides for access to a CharSerializer instance at runtime. Since implementations covering all message definitions are typically generated as part of the platform, and an application or deployment can't link to the platform specific implementation without causing circular build dependencies, this factory provides for runtime access.


Constructor Summary
CharSerializerFactory()
           
 
Method Summary
static CharSerializer getCharSerializer(java.lang.String name, Logger logger)
          Given a fully qualified class name, returns a new CharSerializer instance or null if it could not be instantiated.
static void safeLog(Logger logger, java.lang.String text)
          Log the specified text as debug output if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharSerializerFactory

public CharSerializerFactory()
Method Detail

getCharSerializer

public static CharSerializer getCharSerializer(java.lang.String name,
                                               Logger logger)
Given a fully qualified class name, returns a new CharSerializer instance or null if it could not be instantiated. If a logger is provided, any errors are logged at the debug level.


safeLog

public static void safeLog(Logger logger,
                           java.lang.String text)
Log the specified text as debug output if possible.