Package ca.uhn.hl7v2

Interface HapiContext

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DefaultHapiContext

public interface HapiContext extends Closeable
Interface that provides a starting point for
  • Configuring HAPI core services (e.g. parsing)
  • Obtaining correspondingly configured instances of HAPI core services

HapiContext instances are not supposed to be singletons, i.e. if necessary, it is possible to have several HapiContexts within one application.

HapiContext objects maintains the following configuration information

HapiContext serves as factory for HAPI objects that refer to this configuration. Changing the configuration automatically influence all HAPI objects that were created and will be created using the given factory instance: