Class AbstractITextConfigurationEvent

java.lang.Object
com.itextpdf.commons.actions.AbstractITextEvent
com.itextpdf.commons.actions.AbstractITextConfigurationEvent
All Implemented Interfaces:
IEvent
Direct Known Subclasses:
AbstractContextManagerConfigurationEvent, AddFingerPrintEvent, FlushPdfDocumentEvent, LinkDocumentIdEvent, ProducerBuilder

public abstract class AbstractITextConfigurationEvent extends AbstractITextEvent
Abstract class which represents system configuration events. Only for internal usage.
  • Constructor Details

    • AbstractITextConfigurationEvent

      public AbstractITextConfigurationEvent()
  • Method Details

    • addProcessor

      protected ITextProductEventProcessor addProcessor (ITextProductEventProcessor processor)
      Adds a new ITextProductEventProcessor for a product.
      Parameters:
      processor - is a new processor
      Returns:
      a replaced processor for the product
    • removeProcessor

      protected ITextProductEventProcessor removeProcessor (String productName)
      Removes a processor registered for a product.
      Parameters:
      productName - is a product for which processor is removed
      Returns:
      removed processor
    • getActiveProcessor

      protected ITextProductEventProcessor getActiveProcessor (String productName)
      Gets a processor registered for a product.

      If processor isn't registered and product supports AGPL mode DefaultITextProductEventProcessor will be obtained otherwise null will be returned.

      Parameters:
      productName - is a product for which processor is obtained
      Returns:
      processor for the product
    • getProcessors

      protected Map<String,ITextProductEventProcessor> getProcessors()
      Gets an unmodifiable map of registered processors.
      Returns:
      all processors
    • getEvents

      protected List<AbstractProductProcessITextEvent> getEvents (SequenceId id)
      Gets events registered for provided identifier.
      Parameters:
      id - is the identifier
      Returns:
      the list of event for identifier
    • addEvent

      protected void addEvent (SequenceId id, AbstractProductProcessITextEvent event)
      Registers a new event for provided identifier.
      Parameters:
      id - is the identifier
      event - is the event to register
    • registerInternalNamespace

      protected void registerInternalNamespace (String namespace)
      Registers internal namespace.
      Parameters:
      namespace - is the namespace to register
    • doAction

      protected abstract void doAction()
      Method defines the logic of action processing.