public static interface Services.Context
Note: An SPI implementation of this interface is free to override the default methods implementation included here.
There are two basic types of
Services.Service types that can be created within a context.
There is the
Services.Service which represents the self, or some sub-system of the self.
Then there are
Services.Service instances that represent the others as distinct from the self.
These others can depend on the self, as in they call on this self, or the self can
depend on them in its processing. Nothing in the creation of a
Services.Service defines these.
This is done via the
Services.Environment which defines a property representing the root of the
self and then there are the
Services.Signals and the
Services.Orientation of the
|Modifier and Type||Method and Description|
A shortcut method for
Services.Environmentassociated with this context.
Services.Environmentassociated with context
Services.Service service(Services.Name name)
default Services.Service service(String path)
Streamfor iterating over the set of previously registered services.
Services.Subscription subscribe(Services.Subscriber<? super Services.Phenomenon> subscriber)
Services.Subscriberto receive signal and status updates.
subscriber- the subscriber to registered
<T extends Services.Phenomenon> Services.Subscription subscribe(Services.Subscriber<T> subscriber, Class<T> type)
Copyright © 2020 OpenSignals. All rights reserved.