org.apache.xmlbeans.XmlTokenSource.monitor()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(97)

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

XmlTokenSource.monitor介绍

[英]Returns the synchronization object for the document. If concurrent multithreaded access to a document is required, the access should should be protected by synchronizing on this monitor() object. There is one monitor per XML document tree.
[中]返回文档的同步对象。如果需要对文档进行并发多线程访问,则应通过在此monitor()对象上同步来保护访问。每个XML文档树有一个监视器。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

l = (Locale) source;
else if (source instanceof XmlTokenSource)
  l = (Locale) ((XmlTokenSource) source).monitor();
else
  throw new IllegalArgumentException(

代码示例来源:origin: com.github.pjfanning/xmlbeans

l = (Locale) source;
else if (source instanceof XmlTokenSource)
  l = (Locale) ((XmlTokenSource) source).monitor();
else
  throw new IllegalArgumentException(

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

l = (Locale) source;
else if (source instanceof XmlTokenSource)
  l = (Locale) ((XmlTokenSource) source).monitor();
else
  throw new IllegalArgumentException(

相关文章