Class ApplicationLoader
Application and ReceivingApplication bindings
from configuration files.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadApplications(ApplicationRouter theRouter, URL theSource) A convenience method for binding applications to anApplicationRouterInformation about bindings is read from a file at a specified URL.
-
Constructor Details
-
ApplicationLoader
public ApplicationLoader()
-
-
Method Details
-
loadApplications
public static void loadApplications(ApplicationRouter theRouter, URL theSource) throws IOException, HL7Exception, ClassNotFoundException, InstantiationException, IllegalAccessException A convenience method for binding applications to an
ApplicationRouterInformation 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.ResultProcessorEach 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.
- Parameters:
theRouter- theApplicationRouteron which to make the bindingtheSource- a URL pointing to the bindings file- Throws:
IOExceptionHL7ExceptionClassNotFoundExceptionInstantiationExceptionIllegalAccessException
-