public class ServiceEvent<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T |
service
The service.
|
static int |
SERVICE_ADDED
Service was added event.
|
static int |
SERVICE_CHANGED
Service changed.
|
static int |
SERVICE_REMOVED
Service was removed event.
|
protected int |
type
Event type.
|
Constructor and Description |
---|
ServiceEvent()
Bean constructor.
|
ServiceEvent(T service,
int eventtype)
Creates the service event.
|
Modifier and Type | Method and Description |
---|---|
T |
getService()
Gets the service.
|
int |
getType()
Gets the event type.
|
void |
setService(T service)
Sets the service.
|
void |
setType(int type)
Sets the event type.
|
java.lang.String |
toString()
Get the string representation.
|
public static final int SERVICE_ADDED
public static final int SERVICE_REMOVED
public static final int SERVICE_CHANGED
protected int type
protected T service
public ServiceEvent()
public ServiceEvent(T service, int eventtype)
service
- The affected service.eventtype
- The event type.public int getType()
public void setType(int type)
eventtype
- The event type.public T getService()
public void setService(T service)
service
- The service.public java.lang.String toString()
toString
in class java.lang.Object