org.apache.felix.resolver.Logger.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(494)

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

Logger.<init>介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public void start(BundleContext bc) throws Exception
{
  int logLevel = 4;
  if (bc.getProperty(LOG_LEVEL) != null)
  {
    try
    {
      logLevel = Integer.parseInt(bc.getProperty(LOG_LEVEL));
    }
    catch (NumberFormatException ex)
    {
      // Use default log level.
    }
  }
  bc.registerService(
    Resolver.class,
    new ResolverImpl(new Logger(logLevel)),
    null);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.resolve

public void start(BundleContext bc) throws Exception
{
  int logLevel = 4;
  if (bc.getProperty(LOG_LEVEL) != null)
  {
    try
    {
      logLevel = Integer.parseInt(bc.getProperty(LOG_LEVEL));
    }
    catch (NumberFormatException ex)
    {
      // Use default log level.
    }
  }
  bc.registerService(
    Resolver.class,
    new ResolverImpl(new Logger(logLevel)),
    null);
}

代码示例来源:origin: apache/felix

public void start(BundleContext bc) throws Exception
{
  int logLevel = 4;
  if (bc.getProperty(LOG_LEVEL) != null)
  {
    try
    {
      logLevel = Integer.parseInt(bc.getProperty(LOG_LEVEL));
    }
    catch (NumberFormatException ex)
    {
      // Use default log level.
    }
  }
  bc.registerService(
    Resolver.class,
    new ResolverImpl(new Logger(logLevel)),
    null);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  return new ResolverImpl(new Logger(0), null).resolveDynamic(this, dynamicReq.getRevision().getWiring(), dynamicReq.getOriginal());
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  return new ResolverImpl(new Logger(0), null).resolveDynamic(this, dynamicReq.getRevision().getWiring(), dynamicReq.getOriginal());
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  List<Capability> dynamicMatches = findProviders0(dynamicReq.getOriginal(), dynamicReq);
  return new ResolverImpl(new Logger(0), null).resolve(this, dynamicReq.getRevision(), dynamicReq.getOriginal(), dynamicMatches);
}

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  List<Capability> dynamicMatches = findProviders0(dynamicReq.getOriginal(), dynamicReq);
  return new ResolverImpl(new Logger(0)).resolve(this, dynamicReq.getRevision(), dynamicReq.getOriginal(), dynamicMatches);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  List<Capability> dynamicMatches = findProviders0(dynamicReq.getOriginal(), dynamicReq);
  return new ResolverImpl(new Logger(0), null).resolve(this, dynamicReq.getRevision(), dynamicReq.getOriginal(), dynamicMatches);
}

代码示例来源:origin: apache/karaf

Resolver resolver = new ResolverImpl(new Logger(Logger.LOG_ERROR));
Map<Resource, List<Wire>> wiring = resolver.resolve(new ResolveContext() {
  private final CandidateComparator candidateComparator = new CandidateComparator(r -> 0);

代码示例来源:origin: org.eclipse/osgi

private Map<Resource, List<Wire>> resolveDynamic() throws ResolutionException {
  List<Capability> dynamicMatches = filterProviders(dynamicReq.getOriginal(), moduleDatabase.findCapabilities(dynamicReq));
  return new ResolverImpl(new Logger(0)).resolve(this, dynamicReq.getRevision(), dynamicReq.getOriginal(), dynamicMatches);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

props.clear();
props.put(Constants.SERVICE_RANKING, Integer.MIN_VALUE);
register(bc, Resolver.class, new ResolverImpl(new Logger(0), null), false, props);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi

props.clear();
props.put(Constants.SERVICE_RANKING, Integer.MIN_VALUE);
register(bc, Resolver.class, new ResolverImpl(new Logger(0), null), false, props);

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

props.clear();
props.put(Constants.SERVICE_RANKING, Integer.MIN_VALUE);
register(bc, Resolver.class, new ResolverImpl(new Logger(0), null), false, props);

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

props.clear();
props.put(Constants.SERVICE_RANKING, Integer.MIN_VALUE);
register(bc, Resolver.class, new ResolverImpl(new Logger(0), null), false, props);

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

register(bc, ConditionalPermissionAdmin.class, sa, null);
register(bc, Resolver.class, new ResolverImpl(new Logger(0)), false, null);

代码示例来源:origin: org.eclipse/osgi

register(bc, ConditionalPermissionAdmin.class, sa, null);
register(bc, Resolver.class, new ResolverImpl(new Logger(0)), false, null);

相关文章