in src/main/java/org/apache/sling/models/impl/model/AbstractInjectableElement.java [66:80]
public AbstractInjectableElement(AnnotatedElement element, Type type, String defaultName,
StaticInjectAnnotationProcessorFactory[] processorFactories, DefaultInjectionStrategy defaultInjectionStrategy) {
this.element = element;
this.type = type;
InjectAnnotationProcessor2 annotationProcessor = getAnnotationProcessor(element, processorFactories);
this.name = getName(element, defaultName, annotationProcessor);
this.source = getSource(element);
this.via = getVia(element, annotationProcessor);
this.hasDefaultValue = getHasDefaultValue(element, annotationProcessor);
this.defaultValue = getDefaultValue(element, type, annotationProcessor);
this.isOptional = getOptional(element, annotationProcessor);
this.isRequired = getRequired(element, annotationProcessor);
this.injectionStrategy = getInjectionStrategy(element, annotationProcessor, defaultInjectionStrategy);
this.defaultInjectionStrategy = defaultInjectionStrategy;
}