org.sape.carbon.core.bootstrap
Interface Loader

All Known Implementing Classes:
DefaultLoader

public interface Loader

This interface defines the contract objects must adhere to in order to load (bootstrap) the system. The methods will be called in the following order by BootStrapper:

  1. fetchConfigurationService
  2. fetchComponentKeeper

Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.11 $($Author: dvoet $ / $Date: 2003/05/05 21:21:11 $)
Author:
Douglas Voet, January 2002

Method Summary
 ComponentKeeper fetchComponentKeeper(ConfigurationService configurationService)
           Loads the ComponentKeeper for the system and returns it.
 ConfigurationService fetchConfigurationService()
           Loads the root ConfigurationService for the system and returns it.
 

Method Detail

fetchConfigurationService

public ConfigurationService fetchConfigurationService()

Loads the root ConfigurationService for the system and returns it. This method cannot rely on any other part of the system to construct the ConfigurationService.

Returns:
a reference to the ConfigurationService service for the system
Throws:
BootStrapException - if the ConfigurationService could not be loaded for any reason

fetchComponentKeeper

public ComponentKeeper fetchComponentKeeper(ConfigurationService configurationService)

Loads the ComponentKeeper for the system and returns it. This method must use configuration supplied by the configurationService parameter

Parameters:
configurationService - the value returned by fetchConfigurationService
Returns:
the ComponentKeeper for the system
Throws:
BootStrapException - if the ComponentKeeper could not be loaded for any reason


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.