ResponseDataFactory.java 724 Bytes
Newer Older
TongZuu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
package com.csc.library.factory;

import java.util.List;
import java.util.Map;

import com.csc.library.command.CommandLists;
import com.csc.library.command.CommandRecord;
import com.csc.library.command.CscCommand;
import com.csc.library.response.ResDataImpl;
import com.csc.library.response.ResponseData;

public class ResponseDataFactory {
	private static ResponseDataFactory instance;
	
	private ResponseDataFactory(){}
	
	public static ResponseDataFactory getInstance(){
		if(instance == null){
			instance = new ResponseDataFactory();
		}
		return instance;
	}
	
	public ResponseData createResponseData(CscCommand command){
		ResDataImpl resData = new ResDataImpl();
		command.setResult(resData);
		return resData;
	}
}