Interface Initializable<T extends Initializable<T>>

Type Parameters:
T - initializable type.
All Known Implementing Classes:
JerseyClient, JerseyWebTarget

public interface Initializable<T extends Initializable<T>>
Initializable Jersey client-side component.

This interface provides method that allows to pre-initialize client-side component's runtime and runtime configuration ahead of it's first use. The interface is implemented by JerseyClient and JerseyWebTarget classes.

Since:
2.8
Author:
Marek Potociar
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a live view of an internal client configuration state of this initializable instance.
    Pre-initializes the runtime and runtime configuration of this component in order to improve performance during the first request.
  • Method Details

    • preInitialize

      T preInitialize()
      Pre-initializes the runtime and runtime configuration of this component in order to improve performance during the first request.

      Once this method is called no other method implementing Configurable should be called on this pre initialized component, otherwise the initialized client runtime will be discarded and the configuration will change back to uninitialized.

      Returns:
      pre-initialized Jersey client component.
    • getConfiguration

      ClientConfig getConfiguration()
      Get a live view of an internal client configuration state of this initializable instance.
      Returns:
      configuration live view of the internal configuration state.