Package ca.uhn.hl7v2

Class DefaultHapiContext

java.lang.Object
ca.uhn.hl7v2.DefaultHapiContext
All Implemented Interfaces:
HapiContext, Closeable, AutoCloseable

public class DefaultHapiContext extends Object implements HapiContext
Default implementation for HapiContext. With this class you can configure HAPI and obtain all major HAPI business objects that are initialized accordingly. All configuration objects already have reasonable defaults.

When using Spring Framework for initializing objects, you can use the factory methods like this:

 <!-- Define the context -->
 <bean id="hapiContext" class="ca.uhn.hl7v2.DefaultHapiContext">
    ...
 </bean>
 
 <!-- Obtain the default PipeParser instance -->
 <bean id="pipeParser" factory-bean="hapiContext" factory-method="getPipeParser"/>
 ...