org.apache.felix.framework.util.Util.getClassName()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(160)

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

Util.getClassName介绍

暂无

代码示例

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

public boolean isIncluded(String name)
{
  if ((m_includeFilter == null) && (m_excludeFilter == null))
  {
    return true;
  }
  // Get the class name portion of the target class.
  String className = Util.getClassName(name);
  // If there are no include filters then all classes are included
  // by default, otherwise try to find one match.
  boolean included = (m_includeFilter == null);
  for (int i = 0;
    (!included) && (m_includeFilter != null) && (i < m_includeFilter.size());
    i++)
  {
    included = SimpleFilter.compareSubstring(m_includeFilter.get(i), className);
  }
  // If there are no exclude filters then no classes are excluded
  // by default, otherwise try to find one match.
  boolean excluded = false;
  for (int i = 0;
    (!excluded) && (m_excludeFilter != null) && (i < m_excludeFilter.size());
    i++)
  {
    excluded = SimpleFilter.compareSubstring(m_excludeFilter.get(i), className);
  }
  return included && !excluded;
}

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

String className = Util.getClassName(name);

代码示例来源:origin: org.apache.servicemix.kernel/org.apache.servicemix.kernel.main

public boolean isIncluded(String name)
{
  if ((m_includeFilter == null) && (m_excludeFilter == null))
  {
    return true;
  }
  // Get the class name portion of the target class.
  String className = Util.getClassName(name);
  // If there are no include filters then all classes are included
  // by default, otherwise try to find one match.
  boolean included = (m_includeFilter == null);
  for (int i = 0;
    (!included) && (m_includeFilter != null) && (i < m_includeFilter.length);
    i++)
  {
    included = checkSubstring(m_includeFilter[i], className);
  }
  // If there are no exclude filters then no classes are excluded
  // by default, otherwise try to find one match.
  boolean excluded = false;
  for (int i = 0;
    (!excluded) && (m_excludeFilter != null) && (i < m_excludeFilter.length);
    i++)
  {
    excluded = checkSubstring(m_excludeFilter[i], className);
  }
  return included && !excluded;
}

相关文章