Skip to content

Commit b6ddf5d

Browse files
committed
Improve event counter documentation.
Minor fixes related to namings. DEVSIX-2932
1 parent 9d1c931 commit b6ddf5d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kernel/src/main/java/com/itextpdf/kernel/counter/EventCounterHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This file is part of the iText (R) project.
5656
* <p>
5757
* You can implement your own {@link IEventCounterFactory} and register them with {@link EventCounterHandler#register(IEventCounterFactory)}
5858
* Or implement {@link EventCounter} and register it with {@link SimpleEventCounterFactory} like this:
59-
* <code>EventCounterManager.getInstance().register(new SimpleEventCounterFactory(new SystemOutEventCounter());</code>
59+
* <code>EventCounterHandler.getInstance().register(new SimpleEventCounterFactory(new SystemOutEventCounter());</code>
6060
* {@link SystemOutEventCounter} is just an example of a {@link EventCounter} implementation.
6161
* <p>
6262
* This functionality can be used to create metrics in a SaaS context.

kernel/src/main/java/com/itextpdf/kernel/counter/IEventCounterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This file is part of the iText (R) project.
4747
* Factory that can be registered in {@link EventCounterHandler} and creates a counter for every reader or writer class.
4848
* <p>
4949
* You can implement your own counter factory and register it like this:
50-
* <code>EventCounterManager.getInstance().registerCounter(new SystemOutEventCounterFactory());</code>
50+
* <code>EventCounterHandler.getInstance().register(new SystemOutEventCounterFactory());</code>
5151
* <p>
5252
* {@link SystemOutEventCounterFactory} is just an example of {@link IEventCounterFactory} implementation.
5353
* It creates {@link SystemOutEventCounter} that writes info about files being read and written to the {@link System#out}

kernel/src/main/java/com/itextpdf/kernel/log/ICounterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This file is part of the iText (R) project.
4747
* Factory that can be registered in {@link CounterManager} and creates a counter for every reader or writer class.
4848
* <p>
4949
* You can implement your own counter factory and register it like this:
50-
* <code>CounterManager.getInstance().registerCounter(new SystemOutCounterFactory());</code>
50+
* <code>CounterManager.getInstance().register(new SystemOutCounterFactory());</code>
5151
* <p>
5252
* {@link SystemOutCounterFactory} is just an example of {@link ICounterFactory} implementation.
5353
* It creates {@link SystemOutCounter} that writes info about files being read and written to the {@link System#out}

0 commit comments

Comments
 (0)