org.springframework.osgi.service.importer.event
Class OsgiServiceDependencyWaitTimedOutEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitTimedOutEvent
- All Implemented Interfaces:
- Serializable
public class OsgiServiceDependencyWaitTimedOutEvent
- extends OsgiServiceDependencyEvent
Event raised when an OSGi service dependency could not be found in a certain
amount of time. Normally thrown by OSGi importers, this event allows
notifications of potential failures inside the application context due to
missing (but required) OSGi dependencies.
- Author:
- Costin Leau
- See Also:
- Serialized Form
Method Summary |
long |
getElapsedTime()
Returns the time (in milliseconds) the source waited for OSGi service to
appear before failing. |
OsgiServiceDependencyWaitTimedOutEvent
public OsgiServiceDependencyWaitTimedOutEvent(Object source,
OsgiServiceDependency dependency,
long elapsedTime)
- Constructs a new
OsgiServiceDependencyWaitTimedOutEvent
instance.
- Parameters:
source
- event source (usually a service importer)dependency
- service dependency descriptionelapsedTime
- time spent waiting
getElapsedTime
public long getElapsedTime()
- Returns the time (in milliseconds) the source waited for OSGi service to
appear before failing.
- Returns:
- Returns the timeToWait
Copyright © 2006-2009 Spring Framework. All Rights Reserved.