public class ClientFactoryImpl extends Object implements ClientFactoryInternal
| Constructor and Description |
|---|
ClientFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Class<?>> |
getAllClientTypes() |
<T> T |
getClient(Class<T> clazz)
Get an instance of a specific SOFA programming API client such as
ReferenceClient or
ServiceClient. |
void |
registerClient(Class<?> clientType,
Object clientInstance)
register concrete client to client factory
|
public void registerClient(Class<?> clientType, Object clientInstance)
ClientFactoryInternalregisterClient in interface ClientFactoryInternalclientType - client typeclientInstance - client instancepublic <T> T getClient(Class<T> clazz)
ClientFactoryReferenceClient or
ServiceClient.getClient in interface ClientFactoryT - The type of the client to get.clazz - The type of the client to get.public Collection<Class<?>> getAllClientTypes()
Copyright © 2021. All rights reserved.