InputConfig
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.opensymphony.xwork2.interceptor.annotations.InputConfig(Showing top 5 results out of 315)

origin: org.apache.struts.xwork/xwork-core

/**
 * Process {@link InputConfig} annotation applied to method
 */
protected String processInputConfig(final Object action, final String method, final String currentResultName) throws Exception {
  String resultName = currentResultName;
  InputConfig annotation = action.getClass().getMethod(method, EMPTY_CLASS_ARRAY).getAnnotation(InputConfig.class);
  if (annotation != null) {
    if (!annotation.methodName().equals("")) {
      Method m = action.getClass().getMethod(annotation.methodName());
      resultName = (String) m.invoke(action);
    } else {
      resultName = annotation.resultName();
    }
    if (LOG.isDebugEnabled()) {
      LOG.debug("Changing result name from [#0] to [#1] because of processing annotation [#2] on action [#3]",
          currentResultName, resultName, InputConfig.class.getSimpleName(), action);
    }
  }
  return resultName;
}
origin: org.apache.struts/struts2-core

/**
 * Process {@link InputConfig} annotation applied to method
 * @param action action object
 * @param method method
 * @param currentResultName current result name
 *
 * @return result name
 *
 * @throws Exception in case of any errors
 */
protected String processInputConfig(final Object action, final String method, final String currentResultName) throws Exception {
  String resultName = currentResultName;
  InputConfig annotation = MethodUtils.getAnnotation(action.getClass().getMethod(method, EMPTY_CLASS_ARRAY),
      InputConfig.class ,true,true);
  if (annotation != null) {
    if (StringUtils.isNotEmpty(annotation.methodName())) {
      resultName = (String) MethodUtils.invokeMethod(action, true, annotation.methodName());
    } else {
      resultName = annotation.resultName();
    }
    LOG.debug("Changing result name from [{}] to [{}] because of processing annotation [{}] on action [{}]",
          currentResultName, resultName, InputConfig.class.getSimpleName(), action);
  }
  return resultName;
}
origin: com.opensymphony/xwork

if (!annotation.methodName().equals("")) {
  Method method = action.getClass().getMethod(annotation.methodName());
  resultName = (String) method.invoke(action);
} else {
  resultName = annotation.resultName();
origin: org.apache.struts/struts2-core

/**
 * Process {@link InputConfig} annotation applied to method
 * @param action action object
 * @param method method
 * @param currentResultName current result name
 *
 * @return result name
 *
 * @throws Exception in case of any errors
 */
protected String processInputConfig(final Object action, final String method, final String currentResultName) throws Exception {
  String resultName = currentResultName;
  InputConfig annotation = MethodUtils.getAnnotation(action.getClass().getMethod(method, EMPTY_CLASS_ARRAY),
      InputConfig.class ,true,true);
  if (annotation != null) {
    if (StringUtils.isNotEmpty(annotation.methodName())) {
      resultName = (String) MethodUtils.invokeMethod(action, true, annotation.methodName());
    } else {
      resultName = annotation.resultName();
    }
    LOG.debug("Changing result name from [{}] to [{}] because of processing annotation [{}] on action [{}]",
          currentResultName, resultName, InputConfig.class.getSimpleName(), action);
  }
  return resultName;
}
origin: com.opensymphony/xwork-core

if (!annotation.methodName().equals("")) {
  Method method = action.getClass().getMethod(annotation.methodName());
  resultName = (String) method.invoke(action);
} else {
  resultName = annotation.resultName();
com.opensymphony.xwork2.interceptor.annotationsInputConfig

Most used methods

  • methodName
  • resultName

Popular classes and methods

  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)