public interface ReferenceClient
ClientFactory, then invoke ClientFactory.getClient(Class) to get the instance
of this class.ReferenceClient with annotation
SofaClientFactory.| Modifier and Type | Method and Description |
|---|---|
<T> T |
reference(ReferenceParam<T> referenceParam)
Create a SOFA reference, sample usage:
|
void |
removeReference(Class<?> interfaceClass)
Remove SOFA references on service dimension
|
void |
removeReference(Class<?> interfaceClass,
String uniqueId)
Remove SOFA references on service dimension
|
<T> void |
removeReference(ReferenceParam<T> referenceParam)
Remove a specified SOFA reference
|
<T> T reference(ReferenceParam<T> referenceParam)
ReferenceParam<SampleService> referenceParam = new ReferenceParam<SampleService>(); referenceParam3.setInterfaceType(SampleService.class); SampleService sampleService3 = referenceClient.reference(referenceParam);
T - The type of the SOFA reference to create.referenceParam - The parameter of the SOFA reference to create.<T> void removeReference(ReferenceParam<T> referenceParam)
T - The type of the SOFA reference to removereferenceParam - The parameter of the SOFA reference to removevoid removeReference(Class<?> interfaceClass)
interfaceClass - the interface type of the reference componentCopyright © 2021. All rights reserved.