org.springframework.osgi.service.dependency
Interface DependentServiceExporter

All Known Implementing Classes:
AbstractDependentServiceExporter, AbstractOsgiServiceExporter, OsgiServiceFactoryBean

public interface DependentServiceExporter

Interface describing the OSGi service exporters dependency contract.

Author:
Costin Leau

Method Summary
 boolean isRunning()
          Indicates whether this OSGi component is currently running.
 void setPublishAtStartup(boolean publish)
          Instructs the exporter whether to publish the service at startup or not.
 void start()
          Starts the OSGi lifecycle.
 void stop()
          Stops the OSGi lifecycle.
 

Method Detail

setPublishAtStartup

void setPublishAtStartup(boolean publish)
Instructs the exporter whether to publish the service at startup or not. This method is used internally inside the framework to prevent the exporter for publishing a service if it depends on importers with mandatory service import.

Parameters:
publish - true if the exporter will publish things at startup, false otherwise

start

void start()
Starts the OSGi lifecycle. Should not throw an exception if the component is already running.


stop

void stop()
Stops the OSGi lifecycle. Should not throw an exception if the component is already stopped.


isRunning

boolean isRunning()
Indicates whether this OSGi component is currently running.

Returns:
true if the component is running, false otherwise


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