Package org.cruxframework.crux.core.client.controller

Examples of org.cruxframework.crux.core.client.controller.Controller


             + "\n\t 2. Check if your controller or its members belongs to a client package."
             + "\n\t 3. Check the versions of all your modules.";
     
      throw new CruxGeneratorException(message);
    }
    Controller controllerAnnot = controllerClass.getAnnotation(Controller.class);
    if (controllerAnnot == null)
    {
      throw new CruxGeneratorException("DeviceAdaptive implementation class ["+controllerClass.getQualifiedSourceName()+"] is not a valid Controller. It must be annotated with @Controller annotation.");
    }
   
View Full Code Here


      for (String controller : controllerNames)
      {
        try
        {
          Class<?> controllerClass = Class.forName(controller);
          Controller annot = controllerClass.getAnnotation(Controller.class);
          Device[] devices = annot.supportedDevices();
          String resourceKey = annot.value();
          if (devices == null || devices.length ==0)
          {
            addResource(controllerClass, resourceKey, Device.all);
          }
          else
          {
            for (Device device : devices)
            {
              addResource(controllerClass, resourceKey, device);
            }
          }
          if (controllerClass.getAnnotation(Global.class) != null)
          {
            globalControllers.add(annot.value());
          }
          initWidgetControllers(controllerClass, annot);
        }
        catch (ClassNotFoundException e)
        {
View Full Code Here

   * @return true if this controller can be loaded in lazy mode
   * @throws CruxGeneratorException
   */
  private boolean isControllerLazy(JClassType controllerClass) throws CruxGeneratorException
    {
    Controller controllerAnnot = controllerClass.getAnnotation(Controller.class);
        return (controllerAnnot == null || controllerAnnot.lazy());
    }
View Full Code Here

   * @return true if this controller can be loaded in lazy mode
   * @throws CruxGeneratorException
   */
  private boolean isControllerStatefull(JClassType controllerClass) throws CruxGeneratorException
    {
    Controller controllerAnnot = controllerClass.getAnnotation(Controller.class);
        return (controllerAnnot == null || controllerAnnot.stateful());
    }
View Full Code Here

   */
  public ControllerProxyCreator(TreeLogger logger, GeneratorContext context, JClassType controllerClass)
  {
    super(logger, context, false);
    this.controllerClass = controllerClass;
    Controller controllerAnnot = controllerClass.getAnnotation(Controller.class);
    this.controllerName = controllerAnnot.value();
  }
View Full Code Here

          throw new CruxGeneratorException("Error generating method ["+method.getName()+"] from ControllerAccessor ["+method.getEnclosingType().getQualifiedSourceName()+"]. Controller type is not compatible with method return type.");
        }
      }
      else
      {
        Controller controller = returnTypeClass.getAnnotation(Controller.class);
        controllerName = controller.value();
      }
      if (controllerName != null)
      {
        if(method.getParameters().length == 0)
        {
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.client.controller.Controller

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.