Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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 {
7
	public Provider getProvider(int provider_id) {
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
}