public class DictionaryFactory extends Object
Dictionary Factory to create Dictionary instance a path of the class that has extends the ADictionary class must be given first
| Modifier and Type | Method and Description |
|---|---|
static ADictionary |
createDefaultDictionary(JcsegTaskConfig config)
create the ADictionary according to the JcsegTaskConfig
check and load the lexicon by default
|
static ADictionary |
createDefaultDictionary(JcsegTaskConfig config,
boolean loadDic)
create the ADictionary according to the JcsegTaskConfig
|
static ADictionary |
createDefaultDictionary(JcsegTaskConfig config,
boolean sync,
boolean loadDic)
create a default ADictionary instance:
1.
|
static ADictionary |
createDictionary(Class<? extends ADictionary> _class,
Class<?>[] paramType,
Object[] args)
create a new ADictionary instance
|
static ADictionary |
createSingletonDictionary(JcsegTaskConfig config)
create a singleton ADictionary object according to the JcsegTaskConfig
check and load the lexicon by default
|
static ADictionary |
createSingletonDictionary(JcsegTaskConfig config,
boolean loadDic)
create a singleton ADictionary object according to the JcsegTaskConfig
|
public static ADictionary createDictionary(Class<? extends ADictionary> _class, Class<?>[] paramType, Object[] args)
_class - public static ADictionary createDefaultDictionary(JcsegTaskConfig config, boolean sync, boolean loadDic)
config - sync - loadDic - wether check and load the lexiconpublic static ADictionary createDefaultDictionary(JcsegTaskConfig config)
config - public static ADictionary createDefaultDictionary(JcsegTaskConfig config, boolean loadDic)
config - loadDic - public static ADictionary createSingletonDictionary(JcsegTaskConfig config)
config - public static ADictionary createSingletonDictionary(JcsegTaskConfig config, boolean loadDic)
config - loadDic - ADictionary - Copyright © 2017. All Rights Reserved.