info.aduna.spectacle
Interface InitializationListener

All Known Implementing Classes:
InitializationAdapter

public interface InitializationListener

An InitializationListener is informed about the progress of the loading and initializing of a list of Profiles by an ProfileManager.


Method Summary
 void descriptionsRead(int nrDescriptions)
          Notifies that the ProfileManager has found the specified number of valid Profile descriptions, which will subsequently be resolved to Profile instances.
 void failedLoadingProfile(String id, Exception cause)
          Notifies that the ProfileManager could not load or initialize the Profile with the specified ID because of the specified exception.
 void finishedLoadingProfiles()
          Notifies that the ProfileManager has finished loading and initializing its Profiles.
 void incorrectProfileDescription(String id, Exception cause)
          Notifies that the ProfileManager has found an incorrect Profile description that will thus be skipped.
 void loadedProfile(Profile profile)
          Notifies that the ProfileManager has successfully loaded and initialized the specified Profile.
 void startingLoadingProfiles()
          Notifies that the ProfileManager is about to load its defined Profiles.
 

Method Detail

startingLoadingProfiles

void startingLoadingProfiles()
Notifies that the ProfileManager is about to load its defined Profiles.


incorrectProfileDescription

void incorrectProfileDescription(String id,
                                 Exception cause)
Notifies that the ProfileManager has found an incorrect Profile description that will thus be skipped. An Exception explaining the cause is also specified.


descriptionsRead

void descriptionsRead(int nrDescriptions)
Notifies that the ProfileManager has found the specified number of valid Profile descriptions, which will subsequently be resolved to Profile instances.


loadedProfile

void loadedProfile(Profile profile)
Notifies that the ProfileManager has successfully loaded and initialized the specified Profile.


failedLoadingProfile

void failedLoadingProfile(String id,
                          Exception cause)
Notifies that the ProfileManager could not load or initialize the Profile with the specified ID because of the specified exception.


finishedLoadingProfiles

void finishedLoadingProfiles()
Notifies that the ProfileManager has finished loading and initializing its Profiles.



Copyright © 1997-2008 Aduna. All Rights Reserved.