public final class StubFactory extends java.lang.Object implements StubCreator
Constructor and Description |
---|
StubFactory(ApiProvider apiProvider)
Constructor.
|
StubFactory(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends Service> |
createStub(java.lang.Class<T> vapiIface)
Creates a stub for the specified interface.
|
<T extends Service> |
createStub(java.lang.Class<T> vapiIface,
StubConfigurationBase config)
Creates a stub for the specified interface.
|
public StubFactory(ApiProvider apiProvider)
apiProvider
- to be used for invocations by this stubStubFactory(ApiProvider, TypeConverter)
public StubFactory(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter)
apiProvider
- to be used for invocations by this stubtypeConverter
- for conversion from/to native types; if null
default one will be usedpublic <T extends Service> T createStub(java.lang.Class<T> vapiIface)
StubCreator
createStub
in interface StubCreator
vapiIface
- Class
representing a vAPI interface. not nullpublic <T extends Service> T createStub(java.lang.Class<T> vapiIface, StubConfigurationBase config)
StubCreator
createStub
in interface StubCreator
vapiIface
- Class
representing a vAPI interface; must
not be null
config
- the stub's additional configuration