Package org.codelibs.fess.dict.protwords
Class ProtwordsCreator
java.lang.Object
org.codelibs.fess.dict.DictionaryCreator
org.codelibs.fess.dict.protwords.ProtwordsCreator
Creator for protected words dictionary files.
This class manages the creation and registration of protected words dictionary files.
-
Field Summary
Fields inherited from class org.codelibs.fess.dict.DictionaryCreator
dictionaryManager, pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DictionaryFile<? extends DictionaryItem> newDictionaryFile(String id, String path, Date timestamp) Creates a new dictionary file instance for the given parameters.voidregister()Registers this creator with the dictionary manager.Methods inherited from class org.codelibs.fess.dict.DictionaryCreator
create, encodePath, isTarget, setDictionaryManager
-
Constructor Details
-
ProtwordsCreator
public ProtwordsCreator()Constructor for ProtwordsCreator. Initializes the creator with a pattern to match protwords files.
-
-
Method Details
-
register
@PostConstruct public void register()Registers this creator with the dictionary manager. This method is called automatically after construction to add this creator to the dictionary manager. -
newDictionaryFile
protected DictionaryFile<? extends DictionaryItem> newDictionaryFile(String id, String path, Date timestamp) Description copied from class:DictionaryCreatorCreates a new dictionary file instance for the given parameters.- Specified by:
newDictionaryFilein classDictionaryCreator- Parameters:
id- the encoded identifier for the dictionary filepath- the file path of the dictionarytimestamp- the timestamp of the dictionary file- Returns:
- a new DictionaryFile instance
-