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

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

本文整理了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

  1. /**
  2. * Creates new Logger the given logger name.
  3. *
  4. * @param name the logger name.
  5. */
  6. protected Logger(final String name)
  7. {
  8. this.name = name;
  9. this.loggerDelegate = getDelegatePlugin(name);
  10. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Creates new Logger the given logger name.
  3. *
  4. * @param name the logger name.
  5. */
  6. protected Logger(final String name)
  7. {
  8. this.name = name;
  9. this.loggerDelegate = getDelegatePlugin(name);
  10. }

代码示例来源:origin: jboss.logging/jboss-logging-spi

  1. private void readObject(java.io.ObjectInputStream stream)
  2. throws java.io.IOException, ClassNotFoundException
  3. {
  4. // restore non-transient fields (aka name)
  5. stream.defaultReadObject();
  6. // Restore logging
  7. if (pluginClass == null)
  8. {
  9. init();
  10. }
  11. this.loggerDelegate = getDelegatePlugin(name);
  12. }

代码示例来源:origin: jboss/jboss-logging-spi

  1. /**
  2. * Custom serialization to reinitalize the delegate
  3. *
  4. * @param stream the object stream
  5. * @throws IOException for any error
  6. * @throws ClassNotFoundException if a class is not found during deserialization
  7. */
  8. private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
  9. {
  10. // restore non-transient fields (aka name)
  11. stream.defaultReadObject();
  12. // Restore logging
  13. if (pluginClass == null)
  14. {
  15. init();
  16. }
  17. this.loggerDelegate = getDelegatePlugin(name);
  18. }

相关文章