if (InjectUtil.checkIfTypeNeedsAddingToBeanStore(context, this)) {
_registerCache = new RegisterCache(context, valueRef);
final ContextualStatementBuilder statement;
ActivatedBy ab = getInjectedType().getAnnotation(ActivatedBy.class);
if (ab != null) {
if (ab.value().isAnnotationPresent(LoadAsync.class)) {
throw new RuntimeException(LoadAsync.class.getSimpleName()
+ " is not supported on bean activators. Check type: " + ab.value().getName());
}
statement =
loadVariable(context.getProcessingContext().getContextVariableReference()).invoke("addBean",
getInjectedType(), getInjectedType(), Refs.get(getCreationalCallbackVarName()), isSingleton(),
qualifyingMetadata.render(), beanName, true, Stmt.load(ab.value()));
}
else {
statement =
loadVariable(context.getProcessingContext().getContextVariableReference()).invoke("addBean",
getInjectedType(), getInjectedType(), Refs.get(getCreationalCallbackVarName()), isSingleton(),