com.bankframe.fe.statemachine.ext.apploaders.sax
Class ApplicationManager

java.lang.Object
  extended bycom.bankframe.fe.statemachine.ext.apploaders.sax.ApplicationManager
All Implemented Interfaces:
IApplicationManager

public class ApplicationManager
extends java.lang.Object
implements IApplicationManager


Constructor Summary
ApplicationManager()
          Constructor for ApplicationManager
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationManager

public ApplicationManager()
Constructor for ApplicationManager

Method Detail

getApplication

public IApplication getApplication(java.lang.String name)
                            throws StateMachineException
Description copied from interface: IApplicationManager
Returns an IApplication implementor for the named application.

Specified by:
getApplication in interface IApplicationManager
Parameters:
name -
Returns:
the application with the given name
Throws:
StateMachineException
See Also:
IApplicationManager.getApplication(String)

getDefaultApplication

public IApplication getDefaultApplication()
                                   throws StateMachineException
Description copied from interface: IApplicationManager
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.

Specified by:
getDefaultApplication in interface IApplicationManager
Returns:
application name
Throws:
StateMachineException
See Also:
IApplicationManager.getDefaultApplication()

setProperties

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

Specified by:
setProperties in interface IApplicationManager
Parameters:
properties -
See Also:
IApplicationManager.setProperties(Properties)

refreshApplication

public boolean refreshApplication(java.lang.String name)
                           throws StateMachineException
Description copied from interface: IApplicationManager
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.

Specified by:
refreshApplication in interface IApplicationManager
Parameters:
name - the name of the application to be reloaded.
Returns:
true if the application was refreshed, flase otherwise.
Throws:
StateMachineException
See Also:
IApplicationManager.refreshApplication(String)


Copyright © 2005, 2007, Oracle. All rights reserved.