本文整理了Java中cascading.util.Util.hasClass()
方法的一些代码示例,展示了Util.hasClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.hasClass()
方法的具体详情如下:
包路径:cascading.util.Util
类名称:Util
方法名:hasClass
暂无
代码示例来源:origin: cwensel/cascading
public static void initLog4j( Configuration configuration )
{
String values = configuration.get( "log4j.logger", null );
if( values == null || values.length() == 0 )
return;
if( !Util.hasClass( "org.apache.log4j.Logger" ) )
{
LOG.info( "org.apache.log4j.Logger is not in the current CLASSPATH, not setting log4j.logger properties" );
return;
}
String[] elements = values.split( "," );
for( String element : elements )
LogUtil.setLog4jLevel( element.split( "=" ) );
}
代码示例来源:origin: cascading/cascading-hadoop2-io
public static void initLog4j( Configuration configuration )
{
String values = configuration.get( "log4j.logger", null );
if( values == null || values.length() == 0 )
return;
if( !Util.hasClass( "org.apache.log4j.Logger" ) )
{
LOG.info( "org.apache.log4j.Logger is not in the current CLASSPATH, not setting log4j.logger properties" );
return;
}
String[] elements = values.split( "," );
for( String element : elements )
LogUtil.setLog4jLevel( element.split( "=" ) );
}
内容来源于网络,如有侵权,请联系作者删除!