Generated by
JDiff

com.itextpdf.kernel.counter Documentation Differences

This file contains all the changes in documentation in the package com.itextpdf.kernel.counter as colored differences. Deletions are shown like this , and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.

Class EventCounterHandler

Manager that works with IEventCounterFactory. Create EventCounter for each registered IEventCounterFactory and send corresponding events when calling .onEvent(IEvent, IMetaInfo, Class) method.

You can implement your own IEventCounterFactory and register them with EventCounterHandler.register(IEventCounterFactory) Or implement EventCounter and register it with SimpleEventCounterFactory like this: EventCounterManager EventCounterHandler.getInstance().register(new SimpleEventCounterFactory(new SystemOutEventCounter()); SystemOutEventCounter is just an example of a EventCounter implementation.

This functionality can be used to create metrics in a SaaS context.


Class IEventCounterFactory

Factory that can be registered in EventCounterHandler and creates a counter for every reader or writer class.

You can implement your own counter factory and register it like this: EventCounterManager EventCounterHandler.getInstance(). registerCounter register(new SystemOutEventCounterFactory());

SystemOutEventCounterFactory is just an example of IEventCounterFactory implementation. It creates SystemOutEventCounter that writes info about files being read and written to the System.out

This functionality can be used to create metrics in a SaaS context.