org.ldaptive.beans.reflect
Class TranscoderFactory

java.lang.Object
  extended by org.ldaptive.beans.reflect.TranscoderFactory

public final class TranscoderFactory
extends Object

Creates value transcoders and stores them in a static map.

Version:
$Revision: 3013 $ $Date: 2014-07-02 11:26:52 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Method Summary
protected static org.ldaptive.io.ValueTranscoder<?> createValueTranscoder(String type)
          Creates a value transcoder for the supplied type.
static org.ldaptive.io.ValueTranscoder<?> getInstance(String type)
          Returns a value transcoder for the supplied type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static org.ldaptive.io.ValueTranscoder<?> getInstance(String type)
Returns a value transcoder for the supplied type. If the type cannot be found it is instantiated and cached for future use.

Parameters:
type - of value transcoder
Returns:
value transcoder

createValueTranscoder

protected static org.ldaptive.io.ValueTranscoder<?> createValueTranscoder(String type)
Creates a value transcoder for the supplied type.

Parameters:
type - to create value transcoder for
Returns:
value transcoder
Throws:
IllegalArgumentException - if the supplied type cannot be instantiated


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.