Singleton 的映射

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.



以下形式的新式 singleton

 singleton Name: XIfc;

被映射成同名的公共 Java 类。该类有单一方法

 public static XIfc get(com.sun.star.uno.XComponentContext context) { ... }

在 Java 中,这种 singleton getter 方法的语义如下:


没有将旧式 singleton 映射成 Java 语言绑定

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages