iText 8.0.2 API
iText.Commons.Actions.Contexts.ContextManager Class Reference

The class that retrieves context of its invocation. More...

Public Member Functions

virtual IContext  GetContext (Type clazz)
  Gets the context associated with the passed class object. More...
 
virtual IContext  GetContext (String className)
  Gets the context associated with the passed class object. More...
 

Static Public Member Functions

static iText.Commons.Actions.Contexts.ContextManager  GetInstance ()
  Gets the singleton instance of this class. More...
 

Detailed Description

The class that retrieves context of its invocation.

Member Function Documentation

◆ GetContext() [1/2]

virtual IContext iText.Commons.Actions.Contexts.ContextManager.GetContext ( String  className )
inlinevirtual

Gets the context associated with the passed class object.

Gets the context associated with the passed class object. The context is determined by class namespace.

Parameters
className the class name with the namespace for which the context will be determined.
Returns
the IContext associated with the class, or null if the class is unknown.

◆ GetContext() [2/2]

virtual IContext iText.Commons.Actions.Contexts.ContextManager.GetContext ( Type  clazz )
inlinevirtual

Gets the context associated with the passed class object.

Gets the context associated with the passed class object. The context is determined by class namespace.

Parameters
clazz the class for which the context will be determined.
Returns
the IContext associated with the class, or null if the class is unknown.

◆ GetInstance()

static iText.Commons.Actions.Contexts.ContextManager iText.Commons.Actions.Contexts.ContextManager.GetInstance ( )
inlinestatic

Gets the singleton instance of this class.

Returns
the ContextManager instance