Scope scopeAnn = implType.getAnnotation(Scope.class);
boolean stateless = false;
if (scopeAnn != null) {
stateless = scopeAnn.value() == ScopeType.STATELESS;
}
boolean mayCreate = inAnnotation.create() || autoCreate || stateless;
if (required && !mayCreate) {
String msg = "Not allowed to create required component "+compName+" with impl "+implType+". Try @AutoCreate or @In(create=true).";
if (ignoreNonResolvable) {
log.warn(msg);
} else {