private BeanSpec(Type type, Annotation[] annotations, String name, Injector injector, int modifiers, Map<String, Class> typeParamImplLookup) { this.injector = injector; this.type = type; this.originalName = name; this.name = name; this.rawType = rawTypeOf(type, typeParamImplLookup); this.typeParams(typeParamImplLookup); if (null != typeParamImplLookup && type instanceof TypeVariable && rawType.getTypeParameters().length > 0 && !typeParamImplLookup.isEmpty()) { this.fieldTypeImplLookup = Generics.subLookup(typeParamImplLookup, ((TypeVariable) type).getName()); } this.isArray = rawType.isArray(); this.resolveTypeAnnotations(injector); this.resolveAnnotations(annotations, injector, typeParamImplLookup); this.hc = calcHashCode(); this.modifiers = modifiers; }
private BeanSpec(Type type, Annotation[] annotations, String name, Injector injector, int modifiers, Map<String, Class> typeParamImplLookup) { this.injector = injector; this.type = type; this.originalName = name; this.name = name; this.rawType = rawTypeOf(type, typeParamImplLookup); this.typeParams(typeParamImplLookup); if (null != typeParamImplLookup && type instanceof TypeVariable && rawType.getTypeParameters().length > 0 && !typeParamImplLookup.isEmpty()) { this.fieldTypeImplLookup = Generics.subLookup(typeParamImplLookup, ((TypeVariable) type).getName()); } this.isArray = rawType.isArray(); this.resolveTypeAnnotations(injector); this.resolveAnnotations(annotations, injector, typeParamImplLookup); this.hc = calcHashCode(); this.modifiers = modifiers; }