|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
The QTunes project is entirely made up of Services, which can be started and stopped (relatively) dynamically. Each Service must implement this interface
Method Summary | |
---|---|
ServiceContext |
getContext()
Return the ServiceContext that was passed into startService(org.qtunes.core.ServiceContext) |
java.util.Map<java.lang.String,java.lang.Object> |
reportState()
Return a Map describing the state of this Service, for serialization back to any client that needs to know (eg webplayer) - so values should be serializable objects, eg Lists, Maps or simple objects. |
void |
startService(ServiceContext context)
Start the Service |
void |
stopService(ServiceContext context)
Stop the Service |
Method Detail |
---|
void startService(ServiceContext context)
context
- the ServiceContext for this Servicevoid stopService(ServiceContext context)
context
- the ServiceContext for this Service (same as was passed into start)ServiceContext getContext()
startService(org.qtunes.core.ServiceContext)
java.util.Map<java.lang.String,java.lang.Object> reportState()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |