|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qtunes.zeroconf.ZeroConfFactory
public class ZeroConfFactory
Constructor Summary | |
---|---|
ZeroConfFactory()
|
Method Summary | |
---|---|
Service |
createService(java.lang.Class<? extends Service> type,
java.util.Map<java.lang.String,java.lang.String> properties)
|
ServiceContext |
getContext()
Return the ServiceContext that was passed into Service.startService(org.qtunes.core.ServiceContext) |
java.util.Collection<java.lang.Class<?>> |
getServiceClasses()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZeroConfFactory()
Method Detail |
---|
public void startService(ServiceContext context)
Service
startService
in interface Service
context
- the ServiceContext for this Servicepublic void stopService(ServiceContext context)
Service
stopService
in interface Service
context
- the ServiceContext for this Service (same as was passed into start)public ServiceContext getContext()
Service
Service.startService(org.qtunes.core.ServiceContext)
getContext
in interface Service
public java.util.Collection<java.lang.Class<?>> getServiceClasses()
getServiceClasses
in interface ServiceFactory
public Service createService(java.lang.Class<? extends Service> type, java.util.Map<java.lang.String,java.lang.String> properties)
createService
in interface ServiceFactory
public java.util.Map<java.lang.String,java.lang.Object> reportState()
Service
reportState
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |