public final class StubFactory extends Object implements StubCreator
| Constructor and Description |
|---|
StubFactory(ApiProvider apiProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Service> |
createStub(Class<T> vapiIface)
Creates a stub for the specified interface.
|
<T extends Service> |
createStub(Class<T> vapiIface,
StubConfigurationBase config)
Creates a stub for the specified interface.
|
public StubFactory(ApiProvider apiProvider)
apiProvider - protocol connection to use with
stubs created by this factorypublic <T extends Service> T createStub(Class<T> vapiIface)
StubCreatorcreateStub in interface StubCreatorvapiIface - Class representing a vAPI interface. not nullpublic <T extends Service> T createStub(Class<T> vapiIface, StubConfigurationBase config)
StubCreatorcreateStub in interface StubCreatorvapiIface - Class representing a vAPI interface; must
not be nullconfig - the stub's additional configurationCopyright © 2016. All Rights Reserved.