Package org.strecks.controller.annotation

Examples of org.strecks.controller.annotation.ActionInterface


  }

  Class getActionInterfaceType(Class controllerClass, Class actionBeanClass)
  {

    @SuppressWarnings("unchecked")
    ActionInterface actionInterface = (ActionInterface) controllerClass.getAnnotation(ActionInterface.class);

    if (actionInterface == null)
    {
      throw new ApplicationConfigurationException("The controller class " + controllerClass + " declared from "
          + actionBeanClass + " does not have an " + ActionInterface.class + " annnotation");
    }

    Class actionInterfaceType = actionInterface.name();

    // check that actionInterfaceType is an interface
    if (!actionInterfaceType.isInterface())
    {
      throw new ApplicationConfigurationException("The controller class " + controllerClass + " declared from "
View Full Code Here

TOP

Related Classes of org.strecks.controller.annotation.ActionInterface

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.