com.plumtree.portaluiinfrastructure.layout
Class LayoutService

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.layout.LayoutService

public class LayoutService
extends java.lang.Object

The LayoutService provides access to the factory for creating layout related classes.


Constructor Summary
LayoutService()
           
 
Method Summary
static ILayoutChooser getChooserInstance()
           
static ILayoutFactory getFactoryInstance()
           
static ILayoutManager getManagerInstance()
           
static boolean isValid(java.lang.Object _oKey)
          This method is used by sub-objects to validate creation requests.
static void setChooserTestInstance(ILayoutChooser testChooser)
          Unit tests should use this method to overwrite/teardown existing chooser singleton.
static void setFactoryTestInstance(ILayoutFactory testFactory)
          Unit tests should use this method to overwrite/teardown existing factory singleton.
static void setManagerTestInstance(ILayoutManager testManager)
          Unit tests should use this method to overwrite/teardown existing manager singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutService

public LayoutService()
Method Detail

getFactoryInstance

public static ILayoutFactory getFactoryInstance()
Returns:
The singleton factory for creating layout related objects.

setFactoryTestInstance

public static void setFactoryTestInstance(ILayoutFactory testFactory)
Unit tests should use this method to overwrite/teardown existing factory singleton. DO NOT USE for production code.

Parameters:
testFactory - - if this is null, a real LayoutFactory will be used.

getManagerInstance

public static ILayoutManager getManagerInstance()
Returns:
The singleton manager for retrieving layouts.

setManagerTestInstance

public static void setManagerTestInstance(ILayoutManager testManager)
Unit tests should use this method to overwrite/teardown existing manager singleton. DO NOT USE for production code.

Parameters:
testManager - - if this is null, a real LayoutManager will be used.

getChooserInstance

public static ILayoutChooser getChooserInstance()
Returns:
The singleton object for calculating which layouts to use.

setChooserTestInstance

public static void setChooserTestInstance(ILayoutChooser testChooser)
Unit tests should use this method to overwrite/teardown existing chooser singleton. DO NOT USE for production code.

Parameters:
testChooser - - if this is null, a real LayoutChooser will be used.

isValid

public static boolean isValid(java.lang.Object _oKey)
This method is used by sub-objects to validate creation requests.

Parameters:
_oKey - The service key to validate.
Returns:
true means the key is valid.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.