Rev 20640 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.providers.logistics;import com.aramex.impl.Aramex;import com.bluedart.impl.Bluedart;public class ProviderFactory {public static Provider getProvider(int provider_id) {if(provider_id==1) {return new Bluedart();}else if(provider_id==2) {return new Aramex();} else {return null;}}}