Package com.itextpdf.commons.actions
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
Abstract class which represents system configuration events. Only for internal usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEvent(SequenceId id, AbstractProductProcessITextEvent event) Registers a new event for provided identifier.protected ITextProductEventProcessoraddProcessor(ITextProductEventProcessor processor) Adds a newITextProductEventProcessorfor a product.protected abstract voiddoAction()Method defines the logic of action processing.protected ITextProductEventProcessorgetActiveProcessor(String productName) Gets a processor registered for a product.protected List<AbstractProductProcessITextEvent>getEvents(SequenceId id) Gets events registered for provided identifier.protected Map<String,ITextProductEventProcessor> Gets an unmodifiable map of registered processors.protected voidregisterInternalNamespace(String namespace) Registers internal namespace.protected ITextProductEventProcessorremoveProcessor(String productName) Removes a processor registered for a product.
-
Constructor Details
-
AbstractITextConfigurationEvent
public AbstractITextConfigurationEvent()
-
-
Method Details
-
addProcessor
Adds a newITextProductEventProcessorfor a product.- Parameters:
-
processor- is a new processor - Returns:
- a replaced processor for the product
-
removeProcessor
Removes a processor registered for a product.- Parameters:
-
productName- is a product for which processor is removed - Returns:
- removed processor
-
getActiveProcessor
Gets a processor registered for a product.If processor isn't registered and product supports AGPL mode
DefaultITextProductEventProcessorwill be obtained otherwise null will be returned.- Parameters:
-
productName- is a product for which processor is obtained - Returns:
- processor for the product
-
getProcessors
Gets an unmodifiable map of registered processors.- Returns:
- all processors
-
getEvents
Gets events registered for provided identifier.- Parameters:
-
id- is the identifier - Returns:
- the list of event for identifier
-
addEvent
Registers a new event for provided identifier.- Parameters:
-
id- is the identifier -
event- is the event to register
-
registerInternalNamespace
Registers internal namespace.- Parameters:
-
namespace- is the namespace to register
-
doAction
protected abstract void doAction()Method defines the logic of action processing.
-