Class ClientContext


  • public class ClientContext
    extends java.lang.Object
    Context information provided by the LDClient when creating components.

    This is passed as a parameter to component factories that implement ComponentConfigurer. Component factories do not receive the entire LDConfig because it could contain factory objects that have mutable state, and because components should not be able to access the configurations of unrelated components.

    The actual implementation class may contain other properties that are only relevant to the built-in SDK components and are therefore not part of this base class; this allows the SDK to add its own context information as needed without disturbing the public API.

    Since:
    5.0.0