Class BaseController

java.lang.Object
org.dynamoframework.rest.BaseController
Direct Known Subclasses:
CrudController

public abstract class BaseController extends Object
  • Constructor Details

    • BaseController

      public BaseController()
  • Method Details

    • findClass

      protected <T> Class<T> findClass(String entityName)
      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

      protected <T> EntityModel<T> findEntityModel(String reference, Class<T> clazz)
      Retrieves the entity model for a class
      Parameters:
      reference - the reference to the entity model
      clazz - the class
      Returns:
      the entity model