protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip) { InjectionPoint ip = cip.peek(); return EmptyInjectionPoint.INSTANCE.equals(ip) ? null : ip; }
protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip) { InjectionPoint ip = cip.peek(); return EmptyInjectionPoint.INSTANCE.equals(ip) ? null : ip; }
protected InjectionPoint getInjectionPoint(CurrentInjectionPoint cip) { InjectionPoint ip = cip.peek(); return EmptyInjectionPoint.INSTANCE.equals(ip) ? null : ip; }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = cip.peek(); if (ip == null || EmptyInjectionPoint.INSTANCE.equals(ip)) { throw BeanLogger.LOG.dynamicLookupOfBuiltInNotAllowed(toString()); } return newInstance(ip, creationalContext); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = getInjectionPoint(cip); List<Decorator<?>> decorators = getDecorators(ip); T instance = newInstance(ip, creationalContext); if (decorators == null) { decorators = beanManager.resolveDecorators(Collections.singleton(ip.getType()), getQualifiers()); } if (decorators.isEmpty()) { return instance; } return Decorators.getOuterDelegate(this, instance, creationalContext, getProxyClass(), cip.peek(), getBeanManager(), decorators); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = getInjectionPoint(cip); List<Decorator<?>> decorators = getDecorators(ip); T instance = newInstance(ip, creationalContext); if (decorators == null) { decorators = beanManager.resolveDecorators(Collections.singleton(ip.getType()), getQualifiers()); } if (decorators.isEmpty()) { return instance; } return Decorators.getOuterDelegate(this, instance, creationalContext, getProxyClass(), cip.peek(), getBeanManager(), decorators); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T newInstance(CreationalContext<T> ctx, BeanManagerImpl manager) { InjectionPoint originalInjectionPoint = manager.getServices().get(CurrentInjectionPoint.class).peek(); return applyDecorators(delegate().newInstance(ctx, manager), ctx, originalInjectionPoint, manager); }
@Override public T create(CreationalContext<T> creationalContext) { InjectionPoint ip = getInjectionPoint(cip); List<Decorator<?>> decorators = getDecorators(ip); T instance = newInstance(ip, creationalContext); if (decorators == null) { decorators = beanManager.resolveDecorators(Collections.singleton(ip.getType()), getQualifiers()); } if (decorators.isEmpty()) { return instance; } return Decorators.getOuterDelegate(this, instance, creationalContext, getProxyClass(), cip.peek(), getBeanManager(), decorators); }
public InjectionPointPropagatingEnterpriseTargetBeanInstance(Class<?> baseType, MethodHandler methodHandler, BeanManagerImpl manager) { super(baseType, methodHandler); this.contextId = manager.getContextId(); this.currentInvocationInjectionPoint = manager.getServices().get(CurrentInvocationInjectionPoint.class); InjectionPoint ip = manager.getServices().get(CurrentInjectionPoint.class).peek(); if (ip != null) { this.injectionPointHolder = new InjectionPointHolder(manager.getContextId(), ip); } else { this.injectionPointHolder = null; } }
InjectionPointPropagatingEnterpriseTargetBeanInstance(Class<?> baseType, MethodHandler methodHandler, BeanManagerImpl manager) { super(baseType, methodHandler); this.contextId = manager.getContextId(); this.currentInvocationInjectionPoint = manager.getServices().get(CurrentInvocationInjectionPoint.class); InjectionPoint ip = manager.getServices().get(CurrentInjectionPoint.class).peek(); if (ip != null) { this.injectionPointHolder = new InjectionPointHolder(manager.getContextId(), ip); } else { this.injectionPointHolder = null; } }