Package jodd.madvoc.meta

Examples of jodd.madvoc.meta.RenderWith


    Class<? extends ActionResult> actionResultClass = null;

    if (resultObject != null && resultObject.getClass() != String.class) {
      // try annotation
      RenderWith renderWith = resultObject.getClass().getAnnotation(RenderWith.class);
      if (renderWith != null) {
        actionResultClass = renderWith.value();
      }
    } else if (resultObject == null) {
      Result result = actionRequest.getResult();
      if (result != null) {
        actionResultClass = result.getActionResult();
View Full Code Here


    if (actionResult == null && resultObject != null) {
      Class resultType = resultObject.getClass();

      if (resultType != String.class) {
        // + still not found, read @RenderWith value if exist
        RenderWith renderWith = resultObject.getClass().getAnnotation(RenderWith.class);

        if (renderWith != null) {
          actionResult = lookupAndRegisterIfMissing(renderWith.value());
        }

        if (actionResult == null) {
          // + still not found, lookup for type
          actionResult = typeResults.get(resultObject.getClass());
View Full Code Here

TOP

Related Classes of jodd.madvoc.meta.RenderWith

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.