|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.ServiceEvent
This class holds information about a service event.
Constructor Summary | |
ServiceEvent(long eventId,
Kernel kernel,
ServiceName serviceName,
ServiceFactory serviceFactory,
java.lang.ClassLoader classLoader,
java.lang.Object service,
java.lang.Throwable cause,
java.util.Set unsatisfiedConditions)
Creates a service event. |
Method Summary | |
java.lang.Throwable |
getCause()
Gets the error that was thrown during startup or shutdown. |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader for the service. |
long |
getEventId()
Gets the sequence number for this event. |
Kernel |
getKernel()
Gets the kernel in which the service is registered. |
java.lang.Object |
getService()
Gets the service instance or null if the service doesn't exist. |
ServiceFactory |
getServiceFactory()
Gets the service factory for the service. |
ServiceName |
getServiceName()
Gets the name of the service. |
java.util.Set |
getUnsatisfiedConditions()
Gets the unsatified dependencies that cause the service to wait. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, java.lang.ClassLoader classLoader, java.lang.Object service, java.lang.Throwable cause, java.util.Set unsatisfiedConditions)
eventId
- the sequence number for this eventkernel
- the kernel in which the service is registeredserviceName
- the name of the serviceserviceFactory
- the factory for the serviceclassLoader
- the class loader for the serviceservice
- the service instance if it existscause
- the exception that caused the event if this is an exception eventunsatisfiedConditions
- the unsatified conditions that caused the event if this is a waiting eventMethod Detail |
public long getEventId()
public Kernel getKernel()
public ServiceName getServiceName()
public ServiceFactory getServiceFactory()
public java.lang.ClassLoader getClassLoader()
public java.lang.Object getService()
public java.lang.Throwable getCause()
public java.util.Set getUnsatisfiedConditions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |