Example #1
0
 /**
  * Ensured the provided type is bindable and throws a {@link GenerationException} in case it's
  * not.
  *
  * @param type the type to check
  */
 private static void assertTypeIsBindable(MetaClass type) {
   if (!type.isAnnotationPresent(Bindable.class) && !getConfiguredBindableTypes().contains(type)) {
     throw new GenerationException(
         type.getName() + " must be a @Bindable type when used as @Model");
   }
 }