com.sdm.quasar.client.core.application
Class AbstractApplicationCreator

java.lang.Object
  extended bycom.sdm.quasar.client.core.application.AbstractApplicationCreator

public abstract class AbstractApplicationCreator
extends java.lang.Object

An application creator is responsible for creating and configuration of an Application instance.

This abstract base class actually does nothing. It just defines abstract methods for the two steps of creating an Application instance with it's manager classes (ConfigManager, ServiceManager and SessionManager) (see createApplication() and secondly configuring the Application instance (see configureApplication(Application)).

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
AbstractApplicationCreator()
          Creates a new AbstractApplicationCreator.
 
Method Summary
protected abstract  void configureApplication(Application application)
          Configures the Application given; e.g. registration of core services.
protected abstract  Application createApplication()
          Creates the concrete Application instance and sets the environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractApplicationCreator

public AbstractApplicationCreator()
Creates a new AbstractApplicationCreator.

Method Detail

createApplication

protected abstract Application createApplication()
Creates the concrete Application instance and sets the environment. The created Application should have a non-null ConfigManager, ServiceManager and SessionManager.


configureApplication

protected abstract void configureApplication(Application application)
Configures the Application given; e.g. registration of core services.

Implementors can assume a already existing environment; e.g. the Application has non-null ConfigManager, ServiceManager and SessionManager

Parameters:
application - the application that the services should be registered with