Package jadex.bridge.service.search
Class ServiceEvent<T>
- java.lang.Object
- 
- jadex.bridge.service.search.ServiceEvent<T>
 
- 
 public class ServiceEvent<T> extends java.lang.ObjectService event used if the service registry is used in event mode.
- 
- 
Field SummaryFields Modifier and Type Field Description protected TserviceThe service.static intSERVICE_ADDEDService was added event.static intSERVICE_CHANGEDService changed.static intSERVICE_REMOVEDService was removed event.protected inttypeEvent type.
 - 
Constructor SummaryConstructors Constructor Description ServiceEvent()Bean constructor.ServiceEvent(T service, int eventtype)Creates the service event.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetService()Gets the service.intgetType()Gets the event type.voidsetService(T service)Sets the service.voidsetType(int type)Sets the event type.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
SERVICE_ADDEDpublic static final int SERVICE_ADDED Service was added event.- See Also:
- Constant Field Values
 
 - 
SERVICE_REMOVEDpublic static final int SERVICE_REMOVED Service was removed event.- See Also:
- Constant Field Values
 
 - 
SERVICE_CHANGEDpublic static final int SERVICE_CHANGED Service changed.- See Also:
- Constant Field Values
 
 - 
typeprotected int type Event type.
 - 
serviceprotected T service The service.
 
- 
 - 
Constructor Detail- 
ServiceEventpublic ServiceEvent() Bean constructor.
 - 
ServiceEventpublic ServiceEvent(T service, int eventtype) Creates the service event.- Parameters:
- service- The affected service.
- eventtype- The event type.
 
 
- 
 - 
Method Detail- 
getTypepublic int getType() Gets the event type.- Returns:
- The event type.
 
 - 
setTypepublic void setType(int type) Sets the event type.- Parameters:
- eventtype- The event type.
 
 - 
getServicepublic T getService() Gets the service.- Returns:
- The service.
 
 - 
setServicepublic void setService(T service) Sets the service.- Parameters:
- service- The service.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-