Refine search
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) { Service previous = registry.get(key); if (previous == null) { BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass()); registry.add(key, Reflections.<T>cast(value)); } else if (shouldOverride(key, previous, value)) { BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(), previous.getClass().getName(), value.getClass().getName()); registry.add(key, Reflections.<T>cast(value)); } }
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) { this.originalInstance = Reflections.<T>cast(originalInstance.getInstance()); this.targetBeanInstance = originalInstance; this.beanManager = beanManager; this.contextualStore = contextualStore; this.decorators = new LinkedList<Decorator<?>>(decorators); this.proxyClassForDecorator = proxyClassForDecorator; this.bean = bean; this.instantiator = beanManager.getServices().get(ProxyInstantiator.class); counter = 0; }
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) { Service previous = registry.get(key); if (previous == null) { BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass()); registry.add(key, Reflections.cast(value)); } else if (shouldOverride(key, previous, value)) { BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(), previous.getClass().getName(), value.getClass().getName()); registry.add(key, Reflections.cast(value)); } }
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) { this.originalInstance = Reflections.<T>cast(originalInstance.getInstance()); this.targetBeanInstance = originalInstance; this.beanManager = beanManager; this.contextualStore = contextualStore; this.decorators = new LinkedList<Decorator<?>>(decorators); this.proxyClassForDecorator = proxyClassForDecorator; this.bean = bean; this.instantiator = beanManager.getServices().get(ProxyInstantiator.class); counter = 0; }
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) { this.originalInstance = Reflections.<T>cast(originalInstance.getInstance()); this.targetBeanInstance = originalInstance; this.beanManager = beanManager; this.contextualStore = contextualStore; this.decorators = new LinkedList<Decorator<?>>(decorators); this.proxyClassForDecorator = proxyClassForDecorator; this.bean = bean; this.instantiator = beanManager.getServices().get(ProxyInstantiator.class); counter = 0; }
@Override public AnnotatedParameter<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer } }
public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) { Service previous = registry.get(key); if (previous == null) { BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass()); registry.add(key, Reflections.cast(value)); } else if (shouldOverride(key, previous, value)) { BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(), previous.getClass().getName(), value.getClass().getName()); registry.add(key, Reflections.cast(value)); } }
@Override public AnnotatedField<X> getAnnotated() { return Reflections.cast(delegate().getAnnotated()); // checked in initializer }
public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) { this.originalInstance = Reflections.<T>cast(originalInstance.getInstance()); this.targetBeanInstance = originalInstance; this.beanManager = beanManager; this.contextualStore = contextualStore; this.decorators = new LinkedList<Decorator<?>>(decorators); this.proxyClassForDecorator = proxyClassForDecorator; this.bean = bean; this.instantiator = beanManager.getServices().get(ProxyInstantiator.class); counter = 0; }
public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) { if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) { return Reflections.cast(ip); } if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) { throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated()); } return new ForwardingParameterInjectionPointAttributes<T, X>(ip); }
public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) { Service previous = registry.get(key); if (previous == null) { BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass()); registry.add(key, Reflections.cast(value)); } else if (shouldOverride(key, previous, value)) { BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(), previous.getClass().getName(), value.getClass().getName()); registry.add(key, Reflections.cast(value)); } }
public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) { if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) { return Reflections.cast(ip); } if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) { throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated()); } return new ForwardingParameterInjectionPointAttributes<T, X>(ip); }
public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) { this.originalInstance = Reflections.<T>cast(originalInstance.getInstance()); this.targetBeanInstance = originalInstance; this.beanManager = beanManager; this.contextualStore = contextualStore; this.decorators = new LinkedList<Decorator<?>>(decorators); this.proxyClassForDecorator = proxyClassForDecorator; this.bean = bean; this.instantiator = beanManager.getServices().get(ProxyInstantiator.class); counter = 0; }
public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) { if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) { return Reflections.cast(ip); } if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) { throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated()); } return new ForwardingParameterInjectionPointAttributes<T, X>(ip); }
public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) { Service previous = registry.get(key); if (previous == null) { BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass()); registry.add(key, Reflections.cast(value)); } else if (shouldOverride(key, previous, value)) { BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(), previous.getClass().getName(), value.getClass().getName()); registry.add(key, Reflections.cast(value)); } }