Package play.utils.dyn

Examples of play.utils.dyn.DynamicCrudController


  @SuppressWarnings("unchecked")
  protected ControllerProxy<?, ?> getDynamicController(Class<?> keyType, Class<?> modelType, ModelMetadata model) {
    ControllerProxy<?, ?> proxy = dynamicCrudControllers.get(modelType);
    if (proxy == null) {
      Call indexCall = routes.RouterCrudController.list(model.getName());
      DynamicCrudController dynController = new DynamicCrudController(classLoader, model, indexCall);
      proxy = new ControllerProxyCRUD<>(dynController, model);
      dynamicCrudControllers.put(modelType, proxy);
    }
    return proxy;
  }
View Full Code Here

TOP

Related Classes of play.utils.dyn.DynamicCrudController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.