public final class StubFactory extends Object
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)
vapiIface
- Class
representing a vAPI interface. not nullpublic <T extends Service> T createStub(Class<T> vapiIface, StubConfigurationBase config)
vapiIface
- Class
representing a vAPI interface; must
not be null
config
- the stub's additional configurationCopyright © 2015. All Rights Reserved.