public interface SubscriptionFactory<S extends Subscription> extends SubscriptionType
It is important that subscription providers guarantee that if their services are up, their factory is up. This can be easily done by registering their factory in the same bundle as their services. For example, consider the case of a REST endpoint. If an external client can use the endpoint, then the OSGi Framework should have access to the factory.
This interface is for internal use only and should not be implemented by a third party. This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
Modifier and Type | Method and Description |
---|---|
S |
createSubscription(MarshalledSubscription marshalledSubscription)
Revive a subscription from its serialized form.
|
getTypeName
S createSubscription(MarshalledSubscription marshalledSubscription)
marshalledSubscription
- the subscription data to deserialize.S
.This work is licensed under a Creative Commons Attribution 4.0 International License.