br.com.arsmachina.tapestrycrud.services.impl
Class EncoderSourceImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncoderSourceImpl
public EncoderSourceImpl(Map<Class,Encoder> registrations)
- Single constructor.
- Parameters:
registrations -
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.