@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }
@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }
@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }
@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }
@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }
@Override protected Decorator<?> newInstance(InjectionPoint ip, CreationalContext<Decorator<?>> creationalContext) { Contextual<?> bean = getParentCreationalContext(creationalContext).getContextual(); if (bean instanceof Decorator<?>) { return SerializableProxy.of(getBeanManager().getContextId(), (Decorator<?>) bean); } throw new IllegalArgumentException("Unable to inject " + bean + " into " + ip); }