com.metamatrix.common.application
Interface ApplicationService

All Known Subinterfaces:
AuthorizationService, BufferService, ConfigurationService, DataService, MetadataService, TrackingService, TransactionService, VDBService
All Known Implementing Classes:
ClientServiceRegistryService, CustomizableTrackingService, EmbeddedBaseDQPService, EmbeddedBufferService, EmbeddedConfigurationService, EmbeddedDataService, EmbeddedMetadataService, EmbeddedTrackingService, EmbeddedTransactionService, EmbeddedVDBService, IndexMetadataService, PlatformAuthorizationService, PlatformBufferService, PlatformDataService, PlatformTransactionService, PlatformVDBService, org.teiid.dqp.internal.transaction.TransactionServerImpl

public interface ApplicationService

This defines the basic interface for an application service. The lifecycle of a service is generally as follows:


Method Summary
 void initialize(java.util.Properties props)
          Initialize the service with the specified properties.
 void start(ApplicationEnvironment environment)
          Start the service with the specified environment.
 void stop()
          Stop the service.
 

Method Detail

initialize

void initialize(java.util.Properties props)
                throws ApplicationInitializationException
Initialize the service with the specified properties.

Parameters:
props - Initialialization properties
Throws:
ApplicationInitializationException - If an error occurs during initialization

start

void start(ApplicationEnvironment environment)
           throws ApplicationLifecycleException
Start the service with the specified environment. The environment can be used to find other services or resources.

Parameters:
environment - Environment
Throws:
ApplicationLifecycleException - If an error occurs while starting

stop

void stop()
          throws ApplicationLifecycleException
Stop the service.

Throws:
ApplicationLifecycleException - If an error occurs while starting


Copyright © 2009. All Rights Reserved.