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 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 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 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 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)); } }
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 WeldModules() { modules = load(WeldModule.class, WeldClassLoaderResourceLoader.INSTANCE).stream().map(metadata -> metadata.getValue()) .sorted((m1, m2) -> m1.getName().compareTo(m2.getName())) .collect(ImmutableList.collector()); this.validators = Collections.emptySet(); BootstrapLogger.LOG.debugv("Using Weld modules: {0}", modules.stream().map(m -> m.getName()).collect(Collectors.toList())); }
public WeldModules() { modules = load(WeldModule.class, WeldClassLoaderResourceLoader.INSTANCE).stream().map(metadata -> metadata.getValue()) .sorted((m1, m2) -> m1.getName().compareTo(m2.getName())) .collect(ImmutableList.collector()); this.validators = Collections.emptySet(); BootstrapLogger.LOG.debugv("Using Weld modules: {0}", modules.stream().map(m -> m.getName()).collect(Collectors.toList())); }
public WeldModules() { modules = load(WeldModule.class, WeldClassLoaderResourceLoader.INSTANCE).stream().map(metadata -> metadata.getValue()) .sorted((m1, m2) -> m1.getName().compareTo(m2.getName())) .collect(ImmutableList.collector()); this.validators = Collections.emptySet(); BootstrapLogger.LOG.debugv("Using Weld modules: {0}", modules.stream().map(m -> m.getName()).collect(Collectors.toList())); }
public WeldModules() { modules = load(WeldModule.class, WeldClassLoaderResourceLoader.INSTANCE).stream().map(metadata -> metadata.getValue()) .sorted((m1, m2) -> m1.getName().compareTo(m2.getName())) .collect(ImmutableList.collector()); this.validators = Collections.emptySet(); BootstrapLogger.LOG.debugv("Using Weld modules: {0}", modules.stream().map(m -> m.getName()).collect(Collectors.toList())); }
public WeldModules() { modules = load(WeldModule.class, WeldClassLoaderResourceLoader.INSTANCE).stream().map(metadata -> metadata.getValue()) .sorted((m1, m2) -> m1.getName().compareTo(m2.getName())) .collect(ImmutableList.collector()); this.validators = Collections.emptySet(); BootstrapLogger.LOG.debugv("Using Weld modules: {0}", modules.stream().map(m -> m.getName()).collect(Collectors.toList())); }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
/** * Obtains a ProxyInstantiator based on given {@link WeldConfiguration}. * * @param configuration * @return proxy instantiator */ @SuppressWarnings("deprecation") public static ProxyInstantiator create(WeldConfiguration configuration) { ProxyInstantiator result = null; String instantiator = configuration.getStringProperty(ConfigurationKey.PROXY_INSTANTIATOR); if (!instantiator.isEmpty()) { if (!DefaultProxyInstantiator.class.getName().equals(instantiator)) { try { result = newInstance(instantiator); } catch (Exception e) { throw new WeldException(e); } } else { result = DefaultProxyInstantiator.INSTANCE; } } else { result = create(configuration.getBooleanProperty(ConfigurationKey.RELAXED_CONSTRUCTION) || configuration.getBooleanProperty(ConfigurationKey.PROXY_UNSAFE)); } BootstrapLogger.LOG.debugv("Using instantiator: {0}", result.getClass().getName()); return result; }
if (modules != null) { modules.processBeanDeployments(getBeanDeployments()); BootstrapLogger.LOG.debugv("EE modules: {0}", modules);
if (modules != null) { modules.processBeanDeployments(getBeanDeployments()); BootstrapLogger.LOG.debugv("EE modules: {0}", modules);
if (modules != null) { modules.processBeanDeployments(getBeanDeployments()); BootstrapLogger.LOG.debugv("EE modules: {0}", modules);