org.jboss.logging.Logger.getDelegatePlugin()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(152)

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

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);
}

相关文章