Package org.apache.qpid.jms.policy
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 Summary
Modifier and TypeMethodDescriptioncopy()booleanisTrustedType(JmsDestination destination, Class<?> clazz) Returns whether the given class is a trusted type and can be deserialized by the client when calls toObjectMessage.getObject()are made.
-
Method Details
-
copy
JmsDeserializationPolicy copy() -
isTrustedType
Returns whether the given class is a trusted type and can be deserialized by the client when calls toObjectMessage.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.
-