org.apache.polygene.api.structure.Module.layer()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(72)

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

Module.layer介绍

暂无

代码示例

代码示例来源:origin: apache/attic-polygene-java

/**
 * Build a Metric name for the given Module, Method and optional fragments.
 *
 * @param module Module
 * @param method Method
 * @param fragments Name fragments
 * @return Metric name
 */
public static String nameFor( Module module, Method method, String... fragments )
{
  StringJoiner joiner = new StringJoiner( "." )
      .add( module.layer().name() )
      .add( module.name() )
      .add( className( method.getDeclaringClass() ) )
      .add( method.getName() );
  for( String fragment : fragments )
  {
    joiner.add( fragment );
  }
  return joiner.toString();
}

代码示例来源:origin: org.apache.polygene.core/org.apache.polygene.core.api

/**
 * Build a Metric name for the given Module, Method and optional fragments.
 *
 * @param module Module
 * @param method Method
 * @param fragments Name fragments
 * @return Metric name
 */
public static String nameFor( Module module, Method method, String... fragments )
{
  StringJoiner joiner = new StringJoiner( "." )
      .add( module.layer().name() )
      .add( module.name() )
      .add( className( method.getDeclaringClass() ) )
      .add( method.getName() );
  for( String fragment : fragments )
  {
    joiner.add( fragment );
  }
  return joiner.toString();
}

代码示例来源:origin: apache/attic-polygene-java

/**
 * Build a Metric name for the given Module, Type and optional fragments.
 *
 * @param module Module
 * @param type Type
 * @param fragments Name fragments
 * @return Metric name
 */
public static String nameFor( Module module, Class<?> type, String... fragments )
{
  StringJoiner joiner = new StringJoiner( "." )
      .add( module.layer().name() )
      .add( module.name() )
      .add( className( type ) );
  for( String fragment : fragments )
  {
    joiner.add( fragment );
  }
  return joiner.toString();
}

代码示例来源:origin: org.apache.polygene.core/org.apache.polygene.core.api

/**
 * Build a Metric name for the given Module, Type and optional fragments.
 *
 * @param module Module
 * @param type Type
 * @param fragments Name fragments
 * @return Metric name
 */
public static String nameFor( Module module, Class<?> type, String... fragments )
{
  StringJoiner joiner = new StringJoiner( "." )
      .add( module.layer().name() )
      .add( module.name() )
      .add( className( type ) );
  for( String fragment : fragments )
  {
    joiner.add( fragment );
  }
  return joiner.toString();
}

相关文章