br.com.arsmachina.tapestrycrud.services.impl
Class EncoderSourceImpl

java.lang.Object
  extended by br.com.arsmachina.tapestrycrud.services.impl.EncoderSourceImpl
All Implemented Interfaces:
EncoderSource

public class EncoderSourceImpl
extends Object
implements EncoderSource

EncoderSource implementation.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
EncoderSourceImpl(Map<Class,Encoder> registrations)
          Single constructor.
 
Method Summary
<T,K extends Serializable>
Encoder<T,K>
get(Class<T> clasz)
          Returns the Encoder of a given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncoderSourceImpl

public EncoderSourceImpl(Map<Class,Encoder> registrations)
Single constructor.

Parameters:
registrations -
Method Detail

get

public <T,K extends Serializable> Encoder<T,K> get(Class<T> clasz)
Description copied from interface: EncoderSource
Returns the Encoder of a given type.

Specified by:
get in interface EncoderSource
Type Parameters:
T - a type.
K - the type's primary key field type.
Parameters:
clasz - a Class.
Returns:
an Encoder.
See Also:
EncoderSource.get(java.lang.Class)


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.