@Deprecated public class CounterManager extends Object
ICounterfor each registered
ICounterFactoryand send corresponding events on document read and write.
You can implement your own
ICounterFactory and register them with
register(ICounterFactory) Or implement
ICounter and register it with
SimpleCounterFactory like this:
CounterManager.getInstance().register(new SimpleCounterFactory(new SystemOutCounter());
SystemOutCounter is just an example of a
This functionality can be used to create metrics in a SaaS context.
|Modifier and Type||Method and Description|
Returns a list of registered counters for specific class.
Returns the singleton instance of the factory.
public static CounterManager getInstance()
cls- the class for which registered counters are fetched.
public void register(ICounterFactory factory)
ICounterFactory. Does nothing if same factory was already registered.
ICounterFactoryto be registered
Copyright © 1998–2019 iText Group NV. All rights reserved.