Class ContextManager
java.lang.Object
com.itextpdf.commons.actions.contexts.ContextManager
The class that retrieves context of its invocation.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContext
(Class<?> clazz) Gets the context associated with the passed class object.getContext
(String className) Gets the context associated with the passed class object.static ContextManager
Gets the singleton instance of this class.private IContext
getNamespaceMapping
(String namespace) (package private) String
getRecognisedNamespace
(String className) private static String
(package private) void
registerGenericContext
(Collection<String> namespaces, Collection<String> products) (package private) void
unregisterContext
(Collection<String> namespaces)
-
Field Details
-
INSTANCE
-
contextMappings
-
-
Constructor Details
-
ContextManager
ContextManager()
-
-
Method Details
-
getInstance
Gets the singleton instance of this class.- Returns:
- the
ContextManager
instance
-
getContext
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, ornull
if the class is unknown.
-
getContext
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, ornull
if the class is unknown.
-
getRecognisedNamespace
-
unregisterContext
-
getNamespaceMapping
-
registerGenericContext
-
normalize
-