Interface StubCreator

  • All Known Subinterfaces:
    ApiClient
    All Known Implementing Classes:
    StubFactory

    public interface StubCreator
    Interface for vAPI client-side stub factories.
    • Method Detail

      • createStub

        <T extends Service> T createStub​(java.lang.Class<T> vapiIface)
        Creates a stub for the specified interface.
        Parameters:
        vapiIface - Class representing a vAPI interface. not null
        Returns:
        a stub instance for the specified vAPI interface
      • createStub

        <T extends Service> T createStub​(java.lang.Class<T> vapiIface,
                                         StubConfigurationBase config)
        Creates a stub for the specified interface.
        Parameters:
        vapiIface - Class representing a vAPI interface; must not be null
        config - the stub's additional configuration
        Returns:
        a stub instance for the specified vAPI interface