org.jbind.xml.code
Interface IApplicationCode

All Known Implementing Classes:
ApplicationCode

public interface IApplicationCode

Encapsulates an XML application.


Method Summary
 int execute()
          Executes the application.
 IApplication getApplication()
          Gets the application.
 

Method Detail

execute

public int execute()
            throws XmlException
Executes the application. The excecution consists of the following steps:
  1. Setup the application.
  2. Execute the application.
  3. Tear down the application.

Returns:
Returns the return code that the application returned from its execute method (cf. IApplication.execute()).
Throws:
XmlException - Raised if the application could not be instantiated properly.

getApplication

public IApplication getApplication()
                            throws XmlException
Gets the application.

Returns:
(required).
Throws:
XmlException - Raised if the application could not be instantiated properly.