bluestone

Learning without thinking leads to confusion;thinking without learning leads to danger.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::
package com.hap.code.utils;  
  
public enum TemplateType {  
    Single,Manager,Tree,TreeManager  
}  

 

 

[java] view plaincopy
package com.hap.code;  
  
import java.io.Serializable;  
  
import com.hap.code.utils.TemplateType;  
  
public class CodeFactory {  
    public void generateCode(TemplateType templateType,Class<Serializable>... cls) {  
        switch (templateType) {  
        case Single:  
            break;  
        default:  
            break;  
        }  
    }
posted on 2013-12-04 20:30  ssatyr  阅读(1095)  评论(0编辑  收藏  举报