Interface TargetingLifecycleHook

All Superinterfaces:
com.variant.server.impl.lifecycle.LifecycleHook<Variation.Experience,TargetingLifecycleEvent>

public interface TargetingLifecycleHook extends com.variant.server.impl.lifecycle.LifecycleHook<Variation.Experience,TargetingLifecycleEvent>
  • Method Details

    • getLifecycleEventClass

      default Class<TargetingLifecycleEvent> getLifecycleEventClass()
      Description copied from interface: com.variant.server.impl.lifecycle.LifecycleHook
      Implementation must tell the server what life cycle event type(s) it wants to be posted on. If this method returns a super-type, this hook will be posted for it and all its descendant event types.
      Specified by:
      getLifecycleEventClass in interface com.variant.server.impl.lifecycle.LifecycleHook<Variation.Experience,TargetingLifecycleEvent>
      Returns:
      A Class object associated with the life cycle event type(s) of interest.
    • post

      The first hook on the chain that returns a non-empty Optional short-circuits the rest of the chain.
      Specified by:
      post in interface com.variant.server.impl.lifecycle.LifecycleHook<Variation.Experience,TargetingLifecycleEvent>
      Throws:
      Exception
      Since:
      0.7