org.springframework.osgi.service.importer
Interface OsgiServiceDependency

All Known Implementing Classes:
DefaultOsgiServiceDependency

public interface OsgiServiceDependency

Dependency contract to an OSGi service.

Author:
Costin Leau, Andy Piper

Method Summary
 String getBeanName()
          Returns the bean name (if any) that declares this dependency.
 Filter getServiceFilter()
          Returns the OSGi filter for the service dependency.
 boolean isMandatory()
          Indicates if the dependency is mandatory or not.
 

Method Detail

getServiceFilter

Filter getServiceFilter()
Returns the OSGi filter for the service dependency.

Returns:
filter describing the dependent OSGi service

getBeanName

String getBeanName()
Returns the bean name (if any) that declares this dependency.

Returns:
the name of bean declaring the dependency. Can be null.

isMandatory

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

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


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