public interface MessageGateway<Type>
Email
.
This is an ServiceProvider to be used as to register as an OSGI service.
Gateways can be accessed via MessageGatewayService
.
This is used for example by the MailingService to send messages over different
GatewaysMessageGatewayService
Modifier and Type | Method and Description |
---|---|
boolean |
handles(java.lang.Class<? extends Type> type)
Indicate if the Gateway accepts a Message of the given type
|
void |
send(Type message) |
boolean handles(java.lang.Class<? extends Type> type)
type
- to testType
.void send(Type message) throws MailingException
message
- to sendMailingException
- in case the message can not be sent."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"