com.plumtree.uiinfrastructure.web
Class ApplicationManager

java.lang.Object
  extended by com.plumtree.uiinfrastructure.web.ApplicationManager
All Implemented Interfaces:
IApplicationManager

public class ApplicationManager
extends java.lang.Object
implements IApplicationManager

Title: Application Manager

Copyright: Copyright (c) 2002

Company: Plumtree

Version:
1.0
Author:
Marc Harrison

Nested Class Summary
static class ApplicationManager.ApplicationFailedToInitializeException
           
 
Method Summary
 IApplication GetApplication(java.lang.String name)
          Return the plumtree application object that corresponds to the name passed in.
 IApplication GetApplication(java.lang.String name, java.lang.String xmlVarPackFile, java.lang.String libraryPath)
          Return the plumtree application object that corresponds to the name passed in.
static IApplicationManager GetInstance()
          Access the Application Manager singleton.
static void SetTestInstance(IApplicationManager testApplicationManager)
          Unit tests should use this method to overwrite/teardown existing singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

GetInstance

public static IApplicationManager GetInstance()
Access the Application Manager singleton.

Returns:
The application manager singleton instance.

GetApplication

public IApplication GetApplication(java.lang.String name)
Return the plumtree application object that corresponds to the name passed in. NOTE: The Application must initally be access from GetApplication(String, String).

Specified by:
GetApplication in interface IApplicationManager
Parameters:
name - Name of the Application
Returns:
Application corresponding to the name
Throws:
ApplicationManager.ApplicationFailedToInitializeException - if the Application has not been initialized.

GetApplication

public IApplication GetApplication(java.lang.String name,
                                   java.lang.String xmlVarPackFile,
                                   java.lang.String libraryPath)
Return the plumtree application object that corresponds to the name passed in.

Specified by:
GetApplication in interface IApplicationManager
Parameters:
name - Name of the Application
xmlVarPackFile - File path to the dynamic discover file
libraryPath - -- This is not used in Java
Returns:
Application corresponding to the name
Throws:
ApplicationManager.ApplicationFailedToInitializeException - if the Application fails to initialize.

SetTestInstance

public static void SetTestInstance(IApplicationManager testApplicationManager)
Unit tests should use this method to overwrite/teardown existing singleton. DO NOT USE for production code.




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