/* ==================================================================
* Created [2009-4-27 下午11:32:55] by Jon.King
* ==================================================================
* TSS
* ==================================================================
* mailTo:jinpujun@hotmail.com
* Copyright (c) Jon.King, 2009-2012
* ==================================================================
*/
package com.jinhe.tss.cms.lucene.executor;
import com.jinhe.tss.core.util.BeanUtil;
import com.jinhe.tss.core.util.EasyUtils;
public class IndexExecutorFactory {
private IndexExecutorFactory() {
}
public static IIndexExecutor create(String className) {
if ( EasyUtils.isNullOrEmpty( className )) {
return new DefaultIndexExecutor();
}
return (IIndexExecutor) BeanUtil.newInstanceByName(className);
}
}