|
iText 7 7.1.16 API
|
Manager that works with ICounterFactory. More...
Public Member Functions |
|
| virtual IList< ICounter > | GetCounters (Type cls) |
| Returns a list of registered counters for specific class. More... |
|
| virtual void | Register (ICounterFactory factory) |
| Register new ICounterFactory. More... |
|
| virtual bool | Unregister (ICounterFactory factory) |
| Unregister specified ICounterFactory. More... |
|
Static Public Member Functions |
|
| static iText.Kernel.Log.CounterManager | GetInstance () |
| Returns the singleton instance of the factory. More... |
|
Manager that works with ICounterFactory.
Manager that works with ICounterFactory . Create ICounter for each registered ICounterFactory and 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 ICounter implementation.
This functionality can be used to create metrics in a SaaS context.
|
inlinevirtual |
Returns a list of registered counters for specific class.
| cls | the class for which registered counters are fetched. |
|
inlinestatic |
Returns the singleton instance of the factory.
|
inlinevirtual |
Register new ICounterFactory.
Register new ICounterFactory . Does nothing if same factory was already registered.
| factory |
ICounterFactory to be registered
|
inlinevirtual |
Unregister specified ICounterFactory.
Unregister specified ICounterFactory . Does nothing if this factory wasn't registered first.
| factory |
ICounterFactory to be unregistered
true if specified factory was registered first