com.bankframe.fe.statemachine.base.apploaders
Interface IApplicationManager

All Known Implementing Classes:
ApplicationManager

public interface IApplicationManager


Method Summary
 IApplication getApplication(java.lang.String name)
          Returns an IApplication implementor for the named application.
 IApplication getDefaultApplication()
          Returns an IApplication implementor for a default (unnamed) application.
 boolean refreshApplication(java.lang.String name)
          This method reloads the named application from whatever persistence is used by the application manager.
 void setProperties(java.util.Properties properties)
          Sets a Properties within this application manager.
 

Method Detail

getDefaultApplication

public IApplication getDefaultApplication()
                                   throws StateMachineException
Returns an IApplication implementor for a default (unnamed) application. This method allows the statemachine to avoid the necessity of receiving an application name with every event if only one application is going to be deployed.

Returns:
the default application.
Throws:
StateMachineException - if the application cannot be loaded.

getApplication

public IApplication getApplication(java.lang.String name)
                            throws StateMachineException
Returns an IApplication implementor for the named application.

Parameters:
name - the name of the application required.
Returns:
the application with the given name
Throws:
StateMachineException - if the application cannot be loaded.

setProperties

public void setProperties(java.util.Properties properties)
Sets a Properties within this application manager. This is typically used to contain the name of the default application.

Parameters:
properties - The ApplicationManagers properties.

refreshApplication

public boolean refreshApplication(java.lang.String name)
                           throws StateMachineException
This method reloads the named application from whatever persistence is used by the application manager.
This method should return true if the application has been reloaded, or false if the application manager does not support this operation. It can throw a StateMachineException to indicate an unexpected failure.

Parameters:
name - the name of the application to be reloaded.
Returns:
true if the application was refreshed, flase otherwise.
Throws:
StateMachineException


Copyright © 2004 Siebel Systems, Inc. All rights reserved.