public class ApplicationLoader extends Object
Application
and ReceivingApplication
bindings
from configuration files.Constructor and Description |
---|
ApplicationLoader() |
Modifier and Type | Method and Description |
---|---|
static void |
loadApplications(ApplicationRouter theRouter,
URL theSource)
A convenience method for binding applications to an
ApplicationRouter
Information about bindings is read from a file at a specified URL. |
public ApplicationLoader()
public static void loadApplications(ApplicationRouter theRouter, URL theSource) throws IOException, HL7Exception, ClassNotFoundException, InstantiationException, IllegalAccessException
A convenience method for binding applications to an ApplicationRouter
Information about bindings is read from a file at a specified URL. Each line in the
file should have the following format (entries TAB delimited):
message_type trigger_event processing_id version_id app_class
Note that the first four fields can be the wildcard "*", which means any.
For example, if you write an Application called org.yourorganiztion.ADTProcessor that processes several types of ADT messages, and another called org.yourorganization.ResultProcessor that processes result messages, you might have a file that looks like this:
ADT * * * org.yourorganization.ADTProcessor
ORU R01 * * org.yourorganization.ResultProcessor
Each class listed in this file must implement either ca.uhn.hl7v2.app.Application or ca.uhn.hl7v2.protocol.ReceivingApplication, and must have a zero-argument constructor.
theRouter
- the ApplicationRouter
on which to make the bindingtheSource
- a URL pointing to the bindings fileIOException
HL7Exception
ClassNotFoundException
InstantiationException
IllegalAccessException
Copyright © 2001–2017 University Health Network. All rights reserved.