|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.com.arsmachina.module.AbstractModule
br.com.arsmachina.tapestrycrud.module.DefaultTapestryCrudModule
public class DefaultTapestryCrudModule
Default TapestryCrudModule implementation.
| Constructor Summary | |
|---|---|
DefaultTapestryCrudModule(String name,
String rootPackage,
ClassNameLocator classNameLocator,
String daoImplementationSubpackage)
Single constructor of this class. |
|
| Method Summary | ||
|---|---|---|
|
getActivationContextEncoderClass(Class<T> entityClass)
Returns the activation context encoder class corresponding to a given entity class. |
|
protected String |
getActivationContextEncoderClassName(Class<?> entityClass)
Returns the fully-qualified name of the activation context encoder for a given entity class. |
|
|
getEncoderClass(Class<T> entityClass)
Returns the encoder class corresponding to a given entity class. |
|
protected String |
getEncoderClassName(Class<?> entityClass)
Returns the fully-qualified name of the encoder for a given entity class. |
|
|
getLabelEncoderClass(Class<T> entityClass)
Returns the label encoder class corresponding to a given entity class. |
|
protected String |
getLabelEncoderClassName(Class<?> entityClass)
Returns the fully-qualified name of the label encoder for a given entity class. |
|
|
getPrimaryKeyEncoderClass(Class<T> entityClass)
Returns the label encoder class corresponding to a given entity class. |
|
protected String |
getPrimaryKeyEncoderClassName(Class<?> entityClass)
Returns the fully-qualified name of the primary key encoder for a given entity class. |
|
String |
toString()
|
|
| Methods inherited from class br.com.arsmachina.module.AbstractModule |
|---|
getClass, getClass, getClassNameLocator, getName, getRootPackage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface br.com.arsmachina.tapestrycrud.module.TapestryCrudModule |
|---|
getName |
| Constructor Detail |
|---|
public DefaultTapestryCrudModule(String name,
String rootPackage,
ClassNameLocator classNameLocator,
String daoImplementationSubpackage)
name - a String containing the module name. It cannot be null.rootPackage - a String containing the module parent package. It cannot be null.classNameLocator - a ClassNameLocator. It cannot be null.daoImplementationSubpackage - a String. It cannot be null.| Method Detail |
|---|
public <T> Class<? extends ActivationContextEncoder<T>> getActivationContextEncoderClass(Class<T> entityClass)
TapestryCrudModule
getActivationContextEncoderClass in interface TapestryCrudModuleT - the entity type.entityClass - a Class instance. It cannot be null.
ActivationContextEncoder or null (if no corresponding one is found).public <T> Class<? extends Encoder<T,?>> getEncoderClass(Class<T> entityClass)
TapestryCrudModule
getEncoderClass in interface TapestryCrudModuleT - the entity type.entityClass - a Class instance. It cannot be null.
Encoder or null (if no corresponding one is found).public <T> Class<? extends LabelEncoder<T>> getLabelEncoderClass(Class<T> entityClass)
TapestryCrudModule
getLabelEncoderClass in interface TapestryCrudModuleT - the entity type.entityClass - a Class instance. It cannot be null.
LabelEncoder or null (if no corresponding one is found).public <T> Class<? extends PrimaryKeyEncoder<?,T>> getPrimaryKeyEncoderClass(Class<T> entityClass)
TapestryCrudModule
getPrimaryKeyEncoderClass in interface TapestryCrudModuleT - the entity type.entityClass - a Class instance. It cannot be null.
PrimaryKeyEncoder or null (if no corresponding one is found).protected String getActivationContextEncoderClassName(Class<?> entityClass)
clasz - a Class. It cannot be null.
String or null (if no corresponding one is found).protected String getEncoderClassName(Class<?> entityClass)
clasz - a Class. It cannot be null.
String or null (if no corresponding one is found).protected String getLabelEncoderClassName(Class<?> entityClass)
clasz - a Class. It cannot be null.
String or null (if no corresponding one is found).protected String getPrimaryKeyEncoderClassName(Class<?> entityClass)
clasz - a Class. It cannot be null.
String or null (if no corresponding one is found).public String toString()
toString in class br.com.arsmachina.module.AbstractModule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||