本文整理了Java中org.jboss.logging.Logger.getDelegatePlugin()
方法的一些代码示例,展示了Logger.getDelegatePlugin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getDelegatePlugin()
方法的具体详情如下:
包路径:org.jboss.logging.Logger
类名称:Logger
方法名:getDelegatePlugin
[英]Get the delegate plugin
[中]
代码示例来源:origin: jboss.logging/jboss-logging-spi
/**
* Creates new Logger the given logger name.
*
* @param name the logger name.
*/
protected Logger(final String name)
{
this.name = name;
this.loggerDelegate = getDelegatePlugin(name);
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Creates new Logger the given logger name.
*
* @param name the logger name.
*/
protected Logger(final String name)
{
this.name = name;
this.loggerDelegate = getDelegatePlugin(name);
}
代码示例来源:origin: jboss.logging/jboss-logging-spi
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException, ClassNotFoundException
{
// restore non-transient fields (aka name)
stream.defaultReadObject();
// Restore logging
if (pluginClass == null)
{
init();
}
this.loggerDelegate = getDelegatePlugin(name);
}
代码示例来源:origin: jboss/jboss-logging-spi
/**
* Custom serialization to reinitalize the delegate
*
* @param stream the object stream
* @throws IOException for any error
* @throws ClassNotFoundException if a class is not found during deserialization
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
{
// restore non-transient fields (aka name)
stream.defaultReadObject();
// Restore logging
if (pluginClass == null)
{
init();
}
this.loggerDelegate = getDelegatePlugin(name);
}
内容来源于网络,如有侵权,请联系作者删除!