com.sun.lwuit.impl
Class ImplementationFactory

java.lang.Object
  extended by com.sun.lwuit.impl.ImplementationFactory

public class ImplementationFactory
extends java.lang.Object

Generic class allowing 3rd parties to replace the underlying implementation in LWUIT seamlessly. The factory can be replaced by 3rd parties to install a new underlying implementation using elaborate logic.


Constructor Summary
protected ImplementationFactory()
          Allows third parties to replace the implementation factory
 
Method Summary
 LWUITImplementation createImplementation()
          Factory method to create the implementation instance
static ImplementationFactory getInstance()
          Returns the singleton instance of this class
static void setInstance(ImplementationFactory i)
          Install a new implementation factory this method is invoked by implementors to replace a factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationFactory

protected ImplementationFactory()
Allows third parties to replace the implementation factory

Method Detail

getInstance

public static ImplementationFactory getInstance()
Returns the singleton instance of this class

Returns:
instanceof Implementation factory

setInstance

public static void setInstance(ImplementationFactory i)
Install a new implementation factory this method is invoked by implementors to replace a factory.

Parameters:
i - implementation factory instance

createImplementation

public LWUITImplementation createImplementation()
Factory method to create the implementation instance

Returns:
a newly created implementation instance