Package org.dynamoframework.rest
Class BaseController
java.lang.Object
org.dynamoframework.rest.BaseController
- Direct Known Subclasses:
CrudController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Class<T> Looks up the class corresponding to the provided entity name.protected <T> EntityModel<T> findEntityModel(String reference, Class<T> clazz) Retrieves the entity model for a class
-
Constructor Details
-
BaseController
public BaseController()
-
-
Method Details
-
findClass
Looks up the class corresponding to the provided entity name. Throws an exception when no matching class could be found- Parameters:
entityName- the entity name- Returns:
- the class
-
findEntityModel
Retrieves the entity model for a class- Parameters:
reference- the reference to the entity modelclazz- the class- Returns:
- the entity model
-