Package 

Interface ParameterSerializer


  • 
    public interface ParameterSerializer
    
                        

    Interface for serializing method parameters to analytics-compatible values. Implementations should handle conversion of various parameter types to formats suitable for analytics providers.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean canSerialize(Class<?> parameterType) Determines if this serializer can handle the given parameter type.
      abstract Object serialize(Object value, Class<?> parameterType) Serializes a parameter value to an analytics-compatible format.
      Integer getPriority() Gets the priority of this serializer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • canSerialize

         abstract Boolean canSerialize(Class<?> parameterType)

        Determines if this serializer can handle the given parameter type.

        Parameters:
        parameterType - The class type of the parameter to serialize
      • serialize

         abstract Object serialize(Object value, Class<?> parameterType)

        Serializes a parameter value to an analytics-compatible format.

        Parameters:
        value - The parameter value to serialize
        parameterType - The class type of the parameter
      • getPriority

         Integer getPriority()

        Gets the priority of this serializer. Higher priority serializers are checked first when determining which serializer to use.