Package org.jupnp.support.lastchange
Klasse LastChangeAwareServiceManager<T extends LastChangeDelegator>
java.lang.Object
org.jupnp.model.DefaultServiceManager<T>
org.jupnp.support.lastchange.LastChangeAwareServiceManager<T>
- Alle implementierten Schnittstellen:
ServiceManager<T>
public class LastChangeAwareServiceManager<T extends LastChangeDelegator>
extends DefaultServiceManager<T>
Handles the "initial" event state for GENA subscriptions to services using LastChange.
When a GENA subscription is made on your AVTransport/RenderingControl service, you have to read the initial state of the service. Usually Cling would do this for you and simply access all the state variables of your service behind the scenes. But the AVTransport/RenderingControl service doesn't use regular UPnP state variable eventing internally, they rely on the awful "LastChange" mechanism for their "logical" instances.
Use this ServiceManager instead of the default one for
these services.
- Autor:
- Christian Bauer, Amit Kumar Mondal - Code Refactoring
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.jupnp.model.DefaultServiceManager
DefaultServiceManager.DefaultPropertyChangeListener -
Feldübersicht
FelderVon Klasse geerbte Felder org.jupnp.model.DefaultServiceManager
lock, propertyChangeSupport, service, serviceClass, serviceImplVon Schnittstelle geerbte Felder org.jupnp.model.ServiceManager
EVENTED_STATE_VARIABLES -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLastChangeAwareServiceManager(LocalService<T> localService, Class<T> serviceClass, LastChangeParser lastChangeParser) LastChangeAwareServiceManager(LocalService<T> localService, LastChangeParser lastChangeParser) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidCall this method to propagate all accumulated "LastChange" values to GENA subscribers.protected LastChangeParserprotected Collection<StateVariableValue> Von Klasse geerbte Methoden org.jupnp.model.DefaultServiceManager
createPropertyChangeListener, createPropertyChangeSupport, createServiceInstance, execute, getCurrentState, getCurrentState, getImplementation, getLockTimeoutMillis, getPropertyChangeSupport, getService, init, lock, toString, unlock
-
Felddetails
-
lastChangeParser
-
-
Konstruktordetails
-
LastChangeAwareServiceManager
public LastChangeAwareServiceManager(LocalService<T> localService, LastChangeParser lastChangeParser) -
LastChangeAwareServiceManager
public LastChangeAwareServiceManager(LocalService<T> localService, Class<T> serviceClass, LastChangeParser lastChangeParser)
-
-
Methodendetails
-
getLastChangeParser
-
fireLastChange
public void fireLastChange()Call this method to propagate all accumulated "LastChange" values to GENA subscribers. -
readInitialEventedStateVariableValues
- Setzt außer Kraft:
readInitialEventedStateVariableValuesin KlasseDefaultServiceManager<T extends LastChangeDelegator>- Löst aus:
Exception
-