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
,FlushPdfDocumentEvent
,LinkDocumentIdEvent
,ProducerBuilder
Abstract class which represents system configuration events. Only for internal usage.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEvent
(SequenceId id, AbstractProductProcessITextEvent event) Registers a new event for provided identifier.protected ITextProductEventProcessor
addProcessor
(ITextProductEventProcessor processor) Adds a newITextProductEventProcessor
for a product.protected abstract void
doAction()
Method defines the logic of action processing.protected ITextProductEventProcessor
getActiveProcessor
(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 void
registerInternalNamespace
(String namespace) Registers internal namespace.protected ITextProductEventProcessor
removeProcessor
(String productName) Removes a processor registered for a product.
-
Constructor Details
-
AbstractITextConfigurationEvent
public AbstractITextConfigurationEvent()
-
-
Method Details
-
addProcessor
Adds a newITextProductEventProcessor
for 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
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
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.
-