Package org.strecks.controller.annotation

Examples of org.strecks.controller.annotation.Controller


    }
  }

  Class getControllerClass(Class actionClass)
  {
    @SuppressWarnings("unchecked")
    Controller controller = (Controller) actionClass.getAnnotation(Controller.class);

    Class controllerClass = null;

    if (controller == null)
    {
      // check for implicity controllers
      controllerClass = checkImplicitController(actionClass);

      if (controllerClass == null)
      {
        throw new ApplicationConfigurationException(actionClass.getName()
            + " is not a Struts Action subclass and does not have a " + Controller.class.getName()
            + " annotation");
      }
    }
    else
    {
      controllerClass = controller.name();
    }

    if (!ControllerAction.class.isAssignableFrom(controllerClass))
    {
      throw new ApplicationConfigurationException(actionClass.getName() + " has a controller class "
View Full Code Here

TOP

Related Classes of org.strecks.controller.annotation.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.