Class HandlerAssociations

java.lang.Object
io.fluxzero.sdk.tracking.handling.HandlerAssociations

public class HandlerAssociations extends Object
Shared utility for discovering and evaluating Association definitions on handler types and handler methods.

This class centralizes association behavior that is shared between different handler implementations, such as StatefulHandler and SocketEndpointHandler. It can:

  • inspect field-, method-, and parameter-level @Association declarations
  • resolve association values from an incoming DeserializingMessage
  • match a concrete handler instance against computed association values
  • Constructor Details

    • HandlerAssociations

      public HandlerAssociations(@NonNull @NonNull Class<?> targetClass, List<io.fluxzero.common.handling.ParameterResolver<? super DeserializingMessage>> parameterResolvers, Function<Executable, ? extends Annotation> methodAnnotationProvider)
      Creates an association helper for a specific handler type.
      Parameters:
      targetClass - the handler class whose association metadata should be inspected
      parameterResolvers - the parameter resolvers used to resolve parameter-level @Association sources
      methodAnnotationProvider - provider for the effective handler annotation on an executable, used when resolving parameter values
  • Method Details