All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.cq.mailer.MessageGatewayService Maven / Gradle / Ivy

/*
 * Copyright 1997-2010 Day Management AG
 * Barfuesserplatz 6, 4001 Basel, Switzerland
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Day Management AG, ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Day.
 */
package com.day.cq.mailer;

/**
 * OSGI Service to access the available Gateways for a message of a given type.
 * An example of such a message would be an {@link org.apache.commons.mail.Email Email}
 * 
 * @see MessageGateway
 * @since 5.4
 */
public interface MessageGatewayService {

    /**
     * Returns the gateway.
     * @param type of the message a gateway is requested
     * @param  The message type.
     * @return the MessageGateway or null if non registered for this type
     */
     MessageGateway getGateway(Class type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy