|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.com.arsmachina.tapestrycrud.services.impl.TapestryCrudModuleServiceImpl
public class TapestryCrudModuleServiceImpl
Default ModuleService implementation.
| Constructor Summary | |
|---|---|
TapestryCrudModuleServiceImpl(Set<TapestryCrudModule> modules)
Single constructor of this class. |
|
| Method Summary | ||
|---|---|---|
|
getActivationContextEncoderClass(Class<T> entityClass)
Returns the activation context encoder class corresponding to a given entity class. |
|
|
getEncoderClass(Class<T> entityClass)
Returns the encoder class corresponding to a given entity class. |
|
|
getLabelEncoderClass(Class<T> entityClass)
Returns the label encoder class corresponding to a given entity class. |
|
Set<TapestryCrudModule> |
getModules()
Returns the set of all modules. |
|
|
getPrimaryKeyEncoderClass(Class<T> entityClass)
Returns the primary key encoder class corresponding to a given entity class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TapestryCrudModuleServiceImpl(Set<TapestryCrudModule> modules)
entityClasses - a Set of TapestryCrudModules. It cannot be null.| Method Detail |
|---|
public Set<TapestryCrudModule> getModules()
TapestryCrudModuleService
getModules in interface TapestryCrudModuleServiceSet of TapestryCrudModules.public <T> Class<? extends ActivationContextEncoder<T>> getActivationContextEncoderClass(Class<T> entityClass)
TapestryCrudModuleService
getActivationContextEncoderClass in interface TapestryCrudModuleServiceT - the entity type.entityClass - a Class instance. It cannot be null.
Class or null (if no corresponding one is found).public <T> Class<? extends Encoder<T,?>> getEncoderClass(Class<T> entityClass)
TapestryCrudModuleService
getEncoderClass in interface TapestryCrudModuleServiceT - the entity type.entityClass - a Class instance. It cannot be null.
Class or null (if no corresponding one is found).public <T> Class<? extends LabelEncoder<T>> getLabelEncoderClass(Class<T> entityClass)
TapestryCrudModuleService
getLabelEncoderClass in interface TapestryCrudModuleServiceT - the entity type.entityClass - a Class instance. It cannot be null.
Class or null (if no corresponding one is found).public <T> Class<? extends PrimaryKeyEncoder<?,T>> getPrimaryKeyEncoderClass(Class<T> entityClass)
TapestryCrudModuleService
getPrimaryKeyEncoderClass in interface TapestryCrudModuleServiceT - the entity type.entityClass - a Class instance. It cannot be null.
Class or null (if no corresponding one is found).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||