gpt4 book ai didi

io.squark.yggdrasil.core.api.YggdrasilContext类的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 18:15:31 27 4
gpt4 key购买 nike

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

YggdrasilContext介绍

暂无

代码示例

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-cdi-provider

@Override
public void provide(YggdrasilConfiguration configuration) throws YggdrasilException {
  logger.info("Initializing Weld container...");
  System.setProperty("org.jboss.logging.provider", "slf4j");
  Weld weld = new Weld();
  weld.setClassLoader(CDIProvider.class.getClassLoader());
  WeldContainer container = weld.initialize();
  YggdrasilContext.registerObject(BeanManager.class.getName(), container.getBeanManager());
  logger.info(CDIProvider.class.getSimpleName() + " initialized.");
}

代码示例来源:origin: io.squark.yggdrasil/yggdrasil-api

if (YggdrasilContext.getOverriddenLibraryPath() != null) {
  ownFile = new File(YggdrasilContext.getOverriddenLibraryPath().toURI());
} else {
  URL location = caller.getProtectionDomain().getCodeSource().getLocation();

代码示例来源:origin: io.squark.yggdrasil.yggdrasil-framework-provider/yggdrasil-servlet-provider

BeanManager beanManager = (BeanManager) YggdrasilContext.getObject(BeanManager.class.getName());

代码示例来源:origin: io.squark.yggdrasil.yggdrasil-framework-provider/yggdrasil-cdi-provider

@Override
public void provide(YggdrasilConfiguration configuration) throws YggdrasilException {
  logger.info("Initializing Weld container...");
  System.setProperty("org.jboss.logging.provider", "slf4j");
  Weld weld = new Weld();
  weld.property(Weld.ARCHIVE_ISOLATION_SYSTEM_PROPERTY, false);
  weld.setClassLoader(CDIProvider.class.getClassLoader());
  WeldContainer container = weld.initialize();
  YggdrasilContext.registerObject(BeanManager.class.getName(), container.getBeanManager());
  logger.info(CDIProvider.class.getSimpleName() + " initialized.");
}

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