Providers
The Providers are a kind of agents for communication via email or SMS. There are two implemented providers:
emailthrough JavaMail API with thecat.albirar.communications.providers.email.javamail.impl.JavaMailSenderEmailProviderimplementation class. (see javamail)SMSthrough Click & Send SMS service provider withcat.albirar.communications.providers.sms.clickandsend.ClickAndSendSmsSenderProviderimplementation class. (see ClickAndSend)
You can use these or any other that you want.
Implementing providers
Any provider implementation class should implement any of the two following interfaces:
cat.albirar.communications.providers.email.IEmailProviderfor email providercat.albirar.communications.providers.sms.ISmsSenderProviderfor SMS provider
The communications should to be made asynchronously. Any problem should to be notified throwing a cat.albirar.communications.providers.ProviderException.
The “registration” of new providers is made by spring scanning components and will be autowired to the list of the service providers.