Package tigase.xml
Class SingletonFactory
- java.lang.Object
-
- tigase.xml.SingletonFactory
-
public class SingletonFactory extends java.lang.Object
SingletonFactory
provides a way to use only one instance ofSimpleParser
in all your code. SinceSimpleParser
if fully thread safe implementation there is no sense to use multiple instances of this class. This in particular useful when processing a lot of network connections sending XML streams and using one instance for all connections can save some resources.
Of course it is still possible to create as many instances ofSimpleParser
you like in normal way using public constructor.Created: Sat Oct 2 22:12:21 2004
- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
-
Constructor Summary
Constructors Constructor Description SingletonFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleParser
getParserInstance()
-
-
-
Method Detail
-
getParserInstance
public static SimpleParser getParserInstance()
-
-