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

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

public class PrimaryKeyEncoderSourceImpl
extends Object
implements PrimaryKeyEncoderSource

PrimaryKeyEncoderSource implementation.

Author:
Thiago H. de Paula Figueiredo

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

Constructor Detail

PrimaryKeyEncoderSourceImpl

public PrimaryKeyEncoderSourceImpl(Map<Class,PrimaryKeyEncoder> registrations,
                                   EncoderSource encoderSource,
                                   PrimaryKeyEncoderFactory primaryKeyEncoderFactory)
Single constructor.

Parameters:
registrations - a Map. It cannot be null.
encoderSource - an EncoderSource. It cannot be null.
primaryKeyEncoderFactory - an PrimaryKeyEncoderFactory. It cannot be null.
Method Detail

get

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

Specified by:
get in interface PrimaryKeyEncoderSource
Type Parameters:
T - a type.
Parameters:
clasz - a Class.
Returns:
an Encoder.
See Also:
PrimaryKeyEncoderSource.get(java.lang.Class)


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