de.danielnaber.languagetool.openoffice
Class SingletonFactory

Object
  extended by SingletonFactory

public class SingletonFactory
extends Object

Author:
Marcin MiƂkowski This class is a factory that creates only a single instance, or a singleton, of the Main class. Used for performance reasons and to allow various parts of code to interact.

Constructor Summary
SingletonFactory()
           
 
Method Summary
 Object createInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext)
           
 Object createInstanceWithContext(XComponentContext xContext)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonFactory

public SingletonFactory()
Method Detail

createInstanceWithArgumentsAndContext

public final Object createInstanceWithArgumentsAndContext(Object[] arguments,
                                                          XComponentContext xContext)
                                                   throws Exception
Throws:
Exception

createInstanceWithContext

public final Object createInstanceWithContext(XComponentContext xContext)
                                       throws Exception
Throws:
Exception


Copyright © 2005-2007 Daniel Naber