org.springframework.osgi.service.dependency
Interface ServiceDependency

All Known Subinterfaces:
DependableServiceImporter
All Known Implementing Classes:
AbstractDependableServiceImporter, AbstractOsgiServiceImportFactoryBean, OsgiServiceCollectionProxyFactoryBean, OsgiServiceProxyFactoryBean

public interface ServiceDependency

Generic dependency service import contract. Offers various access on its status such as being mandatory or satisfied. This interface is used internally for accessing the importer status.

Author:
Costin Leau

Method Summary
 boolean isMandatory()
          Indicates if this dependency is mandatory or not.
 boolean isSatisfied()
          Indicates if the dependency is satisified or not.
 

Method Detail

isMandatory

boolean isMandatory()
Indicates if this dependency is mandatory or not.

Returns:
true if the dependency is mandatory, false otherwise.

isSatisfied

boolean isSatisfied()
Indicates if the dependency is satisified or not. For optional service imports, this should always return true while for mandatory service imports, should return true if at least one service is available or false otherwise.

Returns:
true if the dependency is satisfied, false otherwise.


Copyright © 2006-2008 Spring Framework. All Rights Reserved.