Exemplo n.º 1
0
 /**
  * Method similar to {@link #construct}, but that will NOT include information from supertypes;
  * only class itself and any direct mix-ins it may have.
  */
 public static AnnotatedClass constructWithoutSuperTypes(
     Class<?> cls, AnnotationIntrospector aintr, MixInResolver mir) {
   List<Class<?>> empty = Collections.emptyList();
   AnnotatedClass ac = new AnnotatedClass(cls, empty, aintr, mir);
   ac.resolveClassAnnotations();
   return ac;
 }
Exemplo n.º 2
0
 /**
  * Factory method that instantiates an instance. Returned instance will only be initialized with
  * class annotations, but not with any method information.
  */
 public static AnnotatedClass construct(
     Class<?> cls, AnnotationIntrospector aintr, MixInResolver mir) {
   List<Class<?>> st = ClassUtil.findSuperTypes(cls, null);
   AnnotatedClass ac = new AnnotatedClass(cls, st, aintr, mir);
   ac.resolveClassAnnotations();
   return ac;
 }