SMSManagerImpl.java 535 Bytes
package com.diligrp.website.manager.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.diligrp.website.domain.MobMessage;
import com.diligrp.website.manager.SMSManager;
import com.diligrp.website.rpc.SMSRPCService;

@Component("smsManager")
public class SMSManagerImpl implements SMSManager {

    @Resource(name = "smsRpcService")
    private SMSRPCService smsRpcService;

    @Override
    public boolean sendSMS(MobMessage mm) {
        return smsRpcService.sendSMS(mm);
    }

}