public class SingletonFactory extends Object
SingletonFactory
provides a way to use only one instance of SimpleParser
in all your code.
Since SimpleParser
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.SimpleParser
you like in normal way using public constructor. Created: Sat Oct 2 22:12:21 2004
Constructor and Description |
---|
SingletonFactory() |
Modifier and Type | Method and Description |
---|---|
static SimpleParser |
getParserInstance() |
public static SimpleParser getParserInstance()
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.