Subversion Repositories SmartDukaan

Rev

Rev 20640 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
package com.providers.logistics;
2
 
3
import com.aramex.impl.Aramex;
4
import com.bluedart.impl.Bluedart;
5
 
6
public class ProviderFactory {
20642 amit.gupta 7
	public static Provider getProvider(int provider_id) {
20640 amit.gupta 8
		if(provider_id==1) {
9
			return new Bluedart();
10
		}else if(provider_id==2) {
11
			return new Aramex();
12
		} else {
13
			return null;
14
		}
15
	}
16
}