ParameterType - Type of the parameter of the messages to be created.Message - Type of the messages to be created.public interface IMessageFactory<ParameterType,Message extends IMessage<ParameterType>>
| Modifier and Type | Method and Description |
|---|---|
Message |
createMessage(java.lang.Object parameter)
Creates a message of the type specified by the
|
boolean |
isValidParameter(java.lang.Object parameter)
Checks if the given Object is an eligible parameter.
|
Message createMessage(java.lang.Object parameter) throws InvalidParameterTypeException
parameter - Parameter of the message to be created.InvalidParameterTypeExceptionboolean isValidParameter(java.lang.Object parameter)
parameter - Object to be checked.