com.plumtree.uiinfrastructure.web
Class Application

java.lang.Object
  extended by com.plumtree.uiinfrastructure.web.Application
All Implemented Interfaces:
IApplication

public class Application
extends java.lang.Object
implements IApplication

Title: Application

Copyright: Copyright (c) 2002

Company: Plumtree

Version:
1.0
Author:
Marc Harrison

Constructor Summary
  Application(java.lang.String xmlVarPackFile, java.lang.String libraryPath)
          Creates a new Application object.
protected Application(VarPackManager varPackManager)
          Internal constructor for creating sub applications.
 
Method Summary
 boolean ContainsSubApplication(java.lang.String key)
          Check if a subapplication is already in the subapplication table (i.e.
 CachingManager GetCachingManager()
          Get the caching manager for this application
 IApplication GetSubApplication(java.lang.String key)
          Get a sub application.
 VarPackManager GetVarPackManager()
          Get the variable package manager
 boolean IsInitialized()
          Determine if this application has been initialized correctly.
 void RemoveSubApplication(java.lang.String subApplicationName)
          Remove a subspace from this application.
protected  void VarPackInit(VarPackManager varPackManager, java.lang.String xmlVarPackFile, java.lang.String libraryPath)
          Initialize the var packs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application(java.lang.String xmlVarPackFile,
                   java.lang.String libraryPath)
Creates a new Application object.

Parameters:
xmlVarPackFile -
libraryPath - -- This is not used in Java

Application

protected Application(VarPackManager varPackManager)
Internal constructor for creating sub applications. All sub applications need to share one var pack manager.

Parameters:
varPackManager - Variable package manager.
Method Detail

ContainsSubApplication

public boolean ContainsSubApplication(java.lang.String key)
Check if a subapplication is already in the subapplication table (i.e. a subapplication will already exist if GetSubApplication(key) has been called).

Specified by:
ContainsSubApplication in interface IApplication
Parameters:
key - The key which the subapplication is under.
Returns:
true if the subapplication exists.

GetCachingManager

public CachingManager GetCachingManager()
Get the caching manager for this application

Specified by:
GetCachingManager in interface IApplication
Returns:
the caching manager.

GetSubApplication

public IApplication GetSubApplication(java.lang.String key)
Get a sub application. This is to provide seperate spaces to place objects in. By grouping objects that belong together in one application it is easier to clean up, debug and maintain.

Specified by:
GetSubApplication in interface IApplication
Parameters:
key - The key which the sub-application is under.
Returns:
The sub-application

GetVarPackManager

public VarPackManager GetVarPackManager()
Get the variable package manager

Specified by:
GetVarPackManager in interface IApplication
Returns:
variable package manager

IsInitialized

public boolean IsInitialized()
Determine if this application has been initialized correctly.

Returns:
true if the application initialized ok

RemoveSubApplication

public void RemoveSubApplication(java.lang.String subApplicationName)
Remove a subspace from this application.

Specified by:
RemoveSubApplication in interface IApplication
Parameters:
subApplicationName -

VarPackInit

protected void VarPackInit(VarPackManager varPackManager,
                           java.lang.String xmlVarPackFile,
                           java.lang.String libraryPath)
Initialize the var packs

Parameters:
varPackManager - Variable package manager.
xmlVarPackFile -
libraryPath - -- This is not used in Java



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