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 Summary
Fields 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 Summary
Constructors Constructor Description ServiceEvent()Bean constructor.ServiceEvent(T service, int eventtype)Creates the service event.
-
Method Summary
All 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_ADDED
public static final int SERVICE_ADDED
Service was added event.- See Also:
- Constant Field Values
-
SERVICE_REMOVED
public static final int SERVICE_REMOVED
Service was removed event.- See Also:
- Constant Field Values
-
SERVICE_CHANGED
public static final int SERVICE_CHANGED
Service changed.- See Also:
- Constant Field Values
-
type
protected int type
Event type.
-
service
protected T service
The service.
-
-
Constructor Detail
-
ServiceEvent
public ServiceEvent()
Bean constructor.
-
ServiceEvent
public ServiceEvent(T service, int eventtype)
Creates the service event.- Parameters:
service- The affected service.eventtype- The event type.
-
-
Method Detail
-
getType
public int getType()
Gets the event type.- Returns:
- The event type.
-
setType
public void setType(int type)
Sets the event type.- Parameters:
eventtype- The event type.
-
getService
public T getService()
Gets the service.- Returns:
- The service.
-
setService
public void setService(T service)
Sets the service.- Parameters:
service- The service.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-