Class RestClientHolder<T>

java.lang.Object
de.cuioss.portal.restclient.RestClientHolder<T>
All Implemented Interfaces:
de.cuioss.uimodel.service.OptionalService

public class RestClientHolder<T> extends Object implements de.cuioss.uimodel.service.OptionalService
Wraps a concrete rest client implementation of T and provides some convenience methods.
Author:
Matthias Walliczek
  • Constructor Details

  • Method Details

    • get

      public T get()
      Returns:
      the REST client
      Throws:
      IllegalStateException - if service is not available
    • getServiceState

      public de.cuioss.uimodel.service.ServiceState getServiceState()
      Specified by:
      getServiceState in interface de.cuioss.uimodel.service.OptionalService