本文整理了Java中org.apache.polygene.api.structure.Module.layer()
方法的一些代码示例,展示了Module.layer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.layer()
方法的具体详情如下:
包路径:org.apache.polygene.api.structure.Module
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!