|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.xml.SingletonFactory
public class SingletonFactory
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.
Of course it is still possible to create as many instances of
SimpleParser
you like in normal way using public constructor.
Created: Sat Oct 2 22:12:21 2004
Constructor Summary | |
---|---|
SingletonFactory()
|
Method Summary | |
---|---|
static SimpleParser |
getParserInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonFactory()
Method Detail |
---|
public static SimpleParser getParserInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |