Subversion Repositories SmartDukaan

Rev

Go to most recent revision | 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 Provider getProvider(int provider_id) {
                if(provider_id==1) {
                        return new Bluedart();
                }else if(provider_id==2) {
                        return new Aramex();
                } else {
                        return null;
                }
        }
}