Hi Oliver,
Oliver Brinzing wrote:
Hi,
can one give me some hints how to create a real java singleton component like
final XLoggerPool xLoggerPool = LoggerPool.get(xComponentContext); ?
till now i found only
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Singleton
is there a code templete available ?
in this project:
https://forge.osor.eu/projects/ooo-xadessig-it/
I wrote a couple of UNO singletons;
- extension variables and
- a dedicated logger.
The svn repo is here:
https://svn.forge.osor.eu/svn/ooo-xadessig-it
the project that can be checked out as example is:
https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno
Check out is anonymous enabled.
The project is an Eclipse one.
Full svn path to interesting classes:
https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/GlobalLogger.java
https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/SingletonGlobalVariables.java
Licence is EUPL (GPL 2.0 like) I don't know if that will suit your
application.
Feel free to ask if you have questions.
BeppeC.
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
beppec56 at openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org