com.anaptecs.jeaf.serviceproviders.mail.MailServiceProviderImplFactory Maven / Gradle / Ivy
The newest version!
/*
* anaptecs GmbH, Ricarda-Huch-Str. 71, 72760 Reutlingen, Germany
*
* Copyright 2004 - 2019. All rights reserved.
*/
package com.anaptecs.jeaf.serviceproviders.mail;
import com.anaptecs.jeaf.core.api.ServiceProvider;
import com.anaptecs.jeaf.core.servicechannel.api.ServiceProviderFactory;
import com.anaptecs.jeaf.core.spi.ServiceProviderImplementation;
import com.anaptecs.jeaf.spi.mail.MailServiceProvider;
/**
* This class is the factory class the service provider implementation MailServiceProviderImpl.
*
* Implementation of the JEAF Mail Service Provider.
*/
@com.anaptecs.jeaf.core.annotations.ServiceProviderFactory
public final class MailServiceProviderImplFactory extends ServiceProviderFactory {
/**
* Initialize object. No actions have to be performed.
*/
public MailServiceProviderImplFactory( ) {
// Nothing to do.
}
/**
* Method creates a new instance of the service provider.
*
* @return {@link ServiceProviderImplementation} Instance of service provider. The method never returns null.
*
* @see com.anaptecs.jeaf.core.servicechannel.api.ServiceProviderFactory#createServiceProviderImplementation()
*/
public ServiceProviderImplementation createServiceProviderImplementation( ) {
return new MailServiceProviderImpl();
}
/**
* Method returns the interface of the service provider created by this factory.
*
* @return Class Class object of interface that belongs to the service provider that is created by this factory. The
* method never returns null.
*
* @see com.anaptecs.jeaf.core.servicechannel.api.ServiceProviderFactory#getServiceProviderInterface()
*/
public Class extends ServiceProvider> getServiceProviderInterface( ) {
return MailServiceProvider.class;
}
}