Interface JmsDeserializationPolicy

  • All Known Implementing Classes:
    JmsDefaultDeserializationPolicy

    public interface JmsDeserializationPolicy
    Defines the interface for a policy object that controls what types of message content are permissible when the body of an incoming ObjectMessage is being deserialized.
    • Method Detail

      • isTrustedType

        boolean isTrustedType​(JmsDestination destination,
                              Class<?> clazz)
        Returns whether the given class is a trusted type and can be deserialized by the client when calls to ObjectMessage.getObject() are made.
        Parameters:
        destination - the Destination for the message containing the type to be deserialized.
        clazz - the Type of the object that is about to be read.
        Returns:
        true if the type is trusted or false if not.