org.springframework.osgi.service.importer.event
Class OsgiServiceDependencyWaitStartingEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitStartingEvent
- All Implemented Interfaces:
- Serializable
public class OsgiServiceDependencyWaitStartingEvent
- extends OsgiServiceDependencyEvent
Dedicated event for OSGi dependencies that are imported in a timed manner.
The event indicates that a dependency is missing and a bean inside the
application context will start waiting for it, for a specified amount of time
(given as a maximum).
Note that the actual waiting starts shortly after the event is
dispatched however, there are no guarantees on when this will happen as it
depends on the number of listeners interested in this event (and the amount
of work done once the event is received).
- Author:
- Costin Leau
- See Also:
- Serialized Form
Method Summary |
long |
getTimeToWait()
Returns the time (in milliseconds) the source will wait for the OSGi
service to appear. |
OsgiServiceDependencyWaitStartingEvent
public OsgiServiceDependencyWaitStartingEvent(Object source,
OsgiServiceDependency dependency,
long timeToWait)
- Constructs a new
OsgiServiceDependencyWaitStartingEvent
instance.
- Parameters:
source
- event source (usually the service importer)dependency
- dependency descriptiontimeToWait
- wait duration
getTimeToWait
public long getTimeToWait()
- Returns the time (in milliseconds) the source will wait for the OSGi
service to appear.
- Returns:
- Returns the timeToWait
Copyright © 2006-2009 Spring Framework. All Rights Reserved.