public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override protected InjectionPoint delegate() { return ip.get(); } }
@Override protected InjectionPoint delegate() { return ip.get(); } }
public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override protected InjectionPoint delegate() { return ip.get(); } }
public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override protected InjectionPoint delegate() { return ip.get(); } }
public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override protected InjectionPoint delegate() { return ip.get(); } }
public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override protected InjectionPoint delegate() { return ip.get(); } }
public SerializableForwardingInjectionPoint(String contextId, InjectionPoint ip) { this.ip = new InjectionPointHolder(contextId, ip); }
@Override public Object invoke(Object instance, Method method, Object... arguments) throws Throwable { ThreadLocalStackReference<InjectionPoint> stack = null; if (injectionPointHolder != null) { stack = currentInvocationInjectionPoint.push(injectionPointHolder.get()); } else { stack = currentInvocationInjectionPoint.push(EmptyInjectionPoint.INSTANCE); } try { return super.invoke(instance, method, arguments); } finally { stack.pop(); } }
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; } }
@Override public Object invoke(Object instance, Method method, Object... arguments) throws Throwable { ThreadLocalStackReference<InjectionPoint> stack = null; if (injectionPointHolder != null) { stack = currentInvocationInjectionPoint.push(injectionPointHolder.get()); } else { stack = currentInvocationInjectionPoint.push(EmptyInjectionPoint.INSTANCE); } try { return super.invoke(instance, method, arguments); } finally { stack.pop(); } }
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; } }