public interface ServiceReference
ServiceReference
managing the binding with the chosen
service provider.
The reference lets the consumer:
* access the service (via a proxy or a client) with the get()
method
* release the reference - so the binding between the consumer and the provider is removed
Modifier and Type | Method and Description |
---|---|
<T> T |
cached()
Gets the service object if already retrieved.
|
<T> T |
get()
Gets the object to access the service.
|
Record |
record() |
void |
release()
Releases the reference.
|
Record record()
<T> T get()
T
- the type<T> T cached()
T
- the typenull
if not yet retrievedvoid release()
Copyright © 2016. All rights reserved.