Package org.jibeframework.core

Examples of org.jibeframework.core.JibeRuntimeException


      for (Method method : methods) {
        Class<? extends Annotation> clazz;
        try {
          clazz = (Class<? extends Annotation>) Class.forName(clazzName);
        } catch (ClassNotFoundException e1) {
          throw new JibeRuntimeException("Annotation class could not be found: " + clazzName);
        }
        Annotation annotation = method.getAnnotation(clazz);
        if (annotation != null) {
          String id = null;
          try {
            id = (String) annotation.getClass().getMethod("value").invoke(annotation);
          } catch (Exception e) {
            throw new JibeRuntimeException("Annotation does not have value property: "
                + annotation.annotationType().getName());
          }

          if (StringUtils.isEmpty(id)) {
            id = String.format("%1$s.%2$s", beanName, method.getName());
View Full Code Here


          continue;
        }

      }
    }
    throw new JibeRuntimeException("Template is missing:" + template);
  }
View Full Code Here

TOP

Related Classes of org.jibeframework.core.JibeRuntimeException

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.