| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtunes.web.WebServiceFactory
public class WebServiceFactory
| Constructor Summary | |
|---|---|
| WebServiceFactory() | |
| 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 WebServiceFactory()
| Method Detail | 
|---|
public void startService(ServiceContext context)
Service
startService in interface Servicecontext - the ServiceContext for this Servicepublic void stopService(ServiceContext context)
Service
stopService in interface Servicecontext - the ServiceContext for this Service (same as was passed into start)public ServiceContext getContext()
ServiceService.startService(org.qtunes.core.ServiceContext)
getContext in interface Servicepublic 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 ServiceFactorypublic 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 | |||||||||