CloudServiceImpl.java

  1. package net.swindle.springdemo.serviceimpl;

  2. import java.util.Random;

  3. import net.swindle.springdemo.service.BusinessService;

  4. public class CloudServiceImpl implements BusinessService {

  5.   /* (non-Javadoc)
  6.    * @see net.swindle.springdemo.service.BusinessService#offerService(java.lang.String)
  7.    */
  8.   @Override
  9.   public String offerService(String companyName) {
  10.     final Random random = new Random();
  11.     return "\nAs an Organization, "
  12.         + companyName
  13.         + " offers world class Cloud computing infrastructure."
  14.         + "\nThe annual income exceeds "
  15.         + random.nextInt(revenue)
  16.         + " dollars.";
  17.   }
  18. }