Subversion Repositories SmartDukaan

Rev

Rev 20640 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20640 Rev 20642
Line 2... Line 2...
2
 
2
 
3
import com.aramex.impl.Aramex;
3
import com.aramex.impl.Aramex;
4
import com.bluedart.impl.Bluedart;
4
import com.bluedart.impl.Bluedart;
5
 
5
 
6
public class ProviderFactory {
6
public class ProviderFactory {
7
	public Provider getProvider(int provider_id) {
7
	public static Provider getProvider(int provider_id) {
8
		if(provider_id==1) {
8
		if(provider_id==1) {
9
			return new Bluedart();
9
			return new Bluedart();
10
		}else if(provider_id==2) {
10
		}else if(provider_id==2) {
11
			return new Aramex();
11
			return new Aramex();
12
		} else {
12
		} else {