gpt4 book ai didi

org.jboss.weld.environment.deployment.WeldDeployment类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 08:49:05 28 4
gpt4 key购买 nike

本文整理了Java中org.jboss.weld.environment.deployment.WeldDeployment类的一些代码示例,展示了WeldDeployment类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WeldDeployment类的具体详情如下:
包路径:org.jboss.weld.environment.deployment.WeldDeployment
类名称:WeldDeployment

WeldDeployment介绍

暂无

代码示例

代码示例来源:origin: org.jboss.weld.se/weld-se

@Override
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass) {
  WeldBeanDeploymentArchive beanDeploymentArchive = getBeanDeploymentArchive(beanClass);
  if (beanDeploymentArchive == null) {
    beanDeploymentArchive = getAndUpdateAdditionalBeanDeploymentArchive(beanClass);
  }
  return beanDeploymentArchive;
}

代码示例来源:origin: weld/core

/**
 *
 * @param resourceLoader
 * @param bootstrap
 * @param beanDeploymentArchives The set should be mutable so that additional bean deployment archives can be eventually added
 * @param extensions
 */
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
    Iterable<Metadata<Extension>> extensions) {
  super(bootstrap, extensions);
  this.beanDeploymentArchives = beanDeploymentArchives;
  setBeanDeploymentArchivesAccessibility();
  getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: weld/core

protected WeldBeanDeploymentArchive getAndUpdateAdditionalBeanDeploymentArchive(Class<?> beanClass) {
  if (additionalBeanDeploymentArchive == null) {
    synchronized (this) {
      if (additionalBeanDeploymentArchive == null) {
        additionalBeanDeploymentArchive = createAdditionalBeanDeploymentArchive();
      }
    }
  }
  additionalBeanDeploymentArchive.addBeanClass(beanClass.getName());
  return additionalBeanDeploymentArchive;
}

代码示例来源:origin: net.unit8.weld/weld-prescan

@Override
protected Deployment createDeployment(ResourceLoader resourceLoader, CDI11Bootstrap bootstrap) {
  final Iterable<Metadata<Extension>> loadedExtensions = loadExtensions(WeldResourceLoader.getClassLoader(), bootstrap);
  final TypeDiscoveryConfiguration typeDiscoveryConfiguration = bootstrap.startExtensions(loadedExtensions);
  Deployment deployment=null;
  DiscoveryStrategy strategy = DiscoveryStrategyFactory.create(
      resourceLoader,
      bootstrap,
      ImmutableSet.<Class<? extends Annotation>>builder().addAll(typeDiscoveryConfiguration.getKnownBeanDefiningAnnotations())
          // Add ThreadScoped manually as Weld SE doesn't support implicit bean archives without beans.xml
          .add(ThreadScoped.class).build());
  Set<WeldBeanDeploymentArchive> discoveredArchives = loadArchives();
  /*
  String isolation = AccessController.doPrivileged(new GetSystemPropertyAction(ARCHIVE_ISOLATION_SYSTEM_PROPERTY));
  if (isolation != null && Boolean.valueOf(isolation).equals(Boolean.FALSE)) {
    WeldBeanDeploymentArchive archive = WeldBeanDeploymentArchive.merge(bootstrap, discoveredArchives);
    deployment = new WeldDeployment(resourceLoader, bootstrap, Collections.singleton(archive), loadedExtensions);
    CommonLogger.LOG.archiveIsolationDisabled();
  } else {
    deployment=  new WeldDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions);
    CommonLogger.LOG.archiveIsolationEnabled();
  }
  */
  deployment=  new WeldDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions);
  if(strategy.getClassFileServices() != null) {
    deployment.getServices().add(ClassFileServices.class, strategy.getClassFileServices());
  }
  return deployment;
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

protected WeldBeanDeploymentArchive getAndUpdateAdditionalBeanDeploymentArchive(Class<?> beanClass) {
  if (additionalBeanDeploymentArchive == null) {
    synchronized (this) {
      if (additionalBeanDeploymentArchive == null) {
        additionalBeanDeploymentArchive = createAdditionalBeanDeploymentArchive();
      }
    }
  }
  additionalBeanDeploymentArchive.addBeanClass(beanClass.getName());
  return additionalBeanDeploymentArchive;
}

代码示例来源:origin: weld/core

deployment = new WeldDeployment(resourceLoader, bootstrap, beanDeploymentArchives, extensions);
  CommonLogger.LOG.archiveIsolationEnabled();
} else {
  Set<WeldBeanDeploymentArchive> flatDeployment = new HashSet<WeldBeanDeploymentArchive>();
  flatDeployment.add(WeldBeanDeploymentArchive.merge(bootstrap, beanDeploymentArchives));
  deployment = new WeldDeployment(resourceLoader, bootstrap, flatDeployment, extensions);
  CommonLogger.LOG.archiveIsolationDisabled();

代码示例来源:origin: org.jboss.weld.environment/weld-environment-common

/**
 *
 * @param resourceLoader
 * @param bootstrap
 * @param beanDeploymentArchives The set should be mutable so that additional bean deployment archives can be eventually added
 * @param extensions
 */
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
    Iterable<Metadata<Extension>> extensions) {
  super(bootstrap, extensions);
  this.beanDeploymentArchives = beanDeploymentArchives;
  setBeanDeploymentArchivesAccessibility();
  getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: weld/core

@Override
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass) {
  WeldBeanDeploymentArchive beanDeploymentArchive = getBeanDeploymentArchive(beanClass);
  if (beanDeploymentArchive == null) {
    beanDeploymentArchive = getAndUpdateAdditionalBeanDeploymentArchive(beanClass);
  }
  return beanDeploymentArchive;
}

代码示例来源:origin: weld/core

protected WeldBeanDeploymentArchive getAndUpdateAdditionalBeanDeploymentArchive(Class<?> beanClass) {
  if (additionalBeanDeploymentArchive == null) {
    synchronized (this) {
      if (additionalBeanDeploymentArchive == null) {
        additionalBeanDeploymentArchive = createAdditionalBeanDeploymentArchive();
      }
    }
  }
  additionalBeanDeploymentArchive.addBeanClass(beanClass.getName());
  return additionalBeanDeploymentArchive;
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

deployment = new WeldDeployment(resourceLoader, bootstrap, beanDeploymentArchives, extensions);
  CommonLogger.LOG.archiveIsolationEnabled();
} else {
  Set<WeldBeanDeploymentArchive> flatDeployment = new HashSet<WeldBeanDeploymentArchive>();
  flatDeployment.add(WeldBeanDeploymentArchive.merge(bootstrap, beanDeploymentArchives));
  deployment = new WeldDeployment(resourceLoader, bootstrap, flatDeployment, extensions);
  CommonLogger.LOG.archiveIsolationDisabled();

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 *
 * @param resourceLoader
 * @param bootstrap
 * @param beanDeploymentArchives The set should be mutable so that additional bean deployment archives can be eventually added
 * @param extensions
 */
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
    Iterable<Metadata<Extension>> extensions) {
  super(bootstrap, extensions);
  this.beanDeploymentArchives = beanDeploymentArchives;
  setBeanDeploymentArchivesAccessibility();
  getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass) {
  WeldBeanDeploymentArchive beanDeploymentArchive = getBeanDeploymentArchive(beanClass);
  if (beanDeploymentArchive == null) {
    beanDeploymentArchive = getAndUpdateAdditionalBeanDeploymentArchive(beanClass);
  }
  return beanDeploymentArchive;
}

代码示例来源:origin: weld/core

protected WeldBeanDeploymentArchive getAndUpdateAdditionalBeanDeploymentArchive(Class<?> beanClass) {
  if (additionalBeanDeploymentArchive == null) {
    synchronized (this) {
      if (additionalBeanDeploymentArchive == null) {
        additionalBeanDeploymentArchive = createAdditionalBeanDeploymentArchive();
      }
    }
  }
  additionalBeanDeploymentArchive.addBeanClass(beanClass.getName());
  return additionalBeanDeploymentArchive;
}

代码示例来源:origin: weld/core

deployment = new WeldDeployment(resourceLoader, bootstrap, beanDeploymentArchives, extensions);
  CommonLogger.LOG.archiveIsolationEnabled();
} else {
  Set<WeldBeanDeploymentArchive> flatDeployment = new HashSet<WeldBeanDeploymentArchive>();
  flatDeployment.add(WeldBeanDeploymentArchive.merge(bootstrap, beanDeploymentArchives));
  deployment = new WeldDeployment(resourceLoader, bootstrap, flatDeployment, extensions);
  CommonLogger.LOG.archiveIsolationDisabled();

代码示例来源:origin: weld/core

/**
 *
 * @param resourceLoader
 * @param bootstrap
 * @param beanDeploymentArchives The set should be mutable so that additional bean deployment archives can be eventually added
 * @param extensions
 */
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
    Iterable<Metadata<Extension>> extensions) {
  super(bootstrap, extensions);
  this.beanDeploymentArchives = beanDeploymentArchives;
  setBeanDeploymentArchivesAccessibility();
  getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: org.jboss.weld.environment/weld-environment-common

@Override
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass) {
  WeldBeanDeploymentArchive beanDeploymentArchive = getBeanDeploymentArchive(beanClass);
  if (beanDeploymentArchive == null) {
    beanDeploymentArchive = getAndUpdateAdditionalBeanDeploymentArchive(beanClass);
  }
  return beanDeploymentArchive;
}

代码示例来源:origin: org.jboss.weld.se/weld-se

protected WeldBeanDeploymentArchive getAndUpdateAdditionalBeanDeploymentArchive(Class<?> beanClass) {
  if (additionalBeanDeploymentArchive == null) {
    synchronized (this) {
      if (additionalBeanDeploymentArchive == null) {
        additionalBeanDeploymentArchive = createAdditionalBeanDeploymentArchive();
      }
    }
  }
  additionalBeanDeploymentArchive.addBeanClass(beanClass.getName());
  return additionalBeanDeploymentArchive;
}

代码示例来源:origin: org.jboss.weld.se/weld-se

deployment = new WeldDeployment(resourceLoader, bootstrap, beanDeploymentArchives, extensions);
  CommonLogger.LOG.archiveIsolationEnabled();
} else {
  Set<WeldBeanDeploymentArchive> flatDeployment = new HashSet<WeldBeanDeploymentArchive>();
  flatDeployment.add(WeldBeanDeploymentArchive.merge(bootstrap, beanDeploymentArchives));
  deployment = new WeldDeployment(resourceLoader, bootstrap, flatDeployment, extensions);
  CommonLogger.LOG.archiveIsolationDisabled();

代码示例来源:origin: org.jboss.weld.se/weld-se

/**
 *
 * @param resourceLoader
 * @param bootstrap
 * @param beanDeploymentArchives The set should be mutable so that additional bean deployment archives can be eventually added
 * @param extensions
 */
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
    Iterable<Metadata<Extension>> extensions) {
  super(bootstrap, extensions);
  this.beanDeploymentArchives = beanDeploymentArchives;
  setBeanDeploymentArchivesAccessibility();
  getServices().add(ResourceLoader.class, resourceLoader);
}

代码示例来源:origin: weld/core

@Override
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass) {
  WeldBeanDeploymentArchive beanDeploymentArchive = getBeanDeploymentArchive(beanClass);
  if (beanDeploymentArchive == null) {
    beanDeploymentArchive = getAndUpdateAdditionalBeanDeploymentArchive(beanClass);
  }
  return beanDeploymentArchive;
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com