Class ProtwordsCreator

java.lang.Object
org.codelibs.fess.dict.DictionaryCreator
org.codelibs.fess.dict.protwords.ProtwordsCreator

public class ProtwordsCreator extends DictionaryCreator
Creator for protected words dictionary files. This class manages the creation and registration of protected words dictionary files.
  • 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: DictionaryCreator
      Creates a new dictionary file instance for the given parameters.
      Specified by:
      newDictionaryFile in class DictionaryCreator
      Parameters:
      id - the encoded identifier for the dictionary file
      path - the file path of the dictionary
      timestamp - the timestamp of the dictionary file
      Returns:
      a new DictionaryFile instance