|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.msg.Factory
public class Factory
This object is used to load an underlying messaging
connection, configure it and instantiate it.
Configuration can be changed at run time without the need to re-write software
for different Connection/Sender/Receiver implemenations.
To load and instantiate a connection object, the set of connection properties are specified by the configurationName in the file ie/ncl/msg/Factory.properties file.
The name of each property in propertiesshould be of the form
configurationName.propertyName
This allows multiple configurations to be set in the same properties object such as:-
configurationName1.propertyNameA=...
configurationName1.propertyNameB=...
configurationName2.propertyNameA=...
configurationName2.propertyNameB=...
The actual property names and values are implementation specific but one property that
must always be configured is:
configurationName1.class=[full classpath of Connection/Sender/Receiver implementation class]
For a list of implementations of Connection/Sender/Receiver see the Java documentation (top of page of each)
or SwiftNote toolkit user manual.
Connection
,
Sender
,
Receiver
Method Summary | |
---|---|
static Connection |
getConnection(java.lang.String configurationName)
Load and instantiate a connection object as specified by the configurationName. |
static Connection |
getConnection(java.lang.String configurationName,
java.util.Properties properties)
Load and instantiate a connection object as specified by the configurationName and the properties. |
static java.lang.String |
getPropertiesFile()
Get the properties file name. |
static Receiver |
getReceiver(java.lang.String configurationName)
Get a receiver as specified by the configurationName. |
static Receiver |
getReceiver(java.lang.String configurationName,
java.util.Properties props)
Get a receiver as specified by the configurationName. |
static Sender |
getSender(java.lang.String configurationName)
Get a sender as specified by the configurationName. |
static Sender |
getSender(java.lang.String configurationName,
java.util.Properties props)
Get a sender as specified by the configurationName. |
static void |
setPropertiesFile(java.lang.String dottedFileName)
Set the properties file name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Connection getConnection(java.lang.String configurationName, java.util.Properties properties) throws ConnectionException
ConnectionException
Connection
,
Sender
,
Receiver
public static void setPropertiesFile(java.lang.String dottedFileName)
public static java.lang.String getPropertiesFile()
setPropertiesFile(java.lang.String)
public static Connection getConnection(java.lang.String configurationName) throws ConnectionException
ConnectionException
Connection
,
Sender
,
Receiver
public static Sender getSender(java.lang.String configurationName) throws ConnectionException
ConnectionException
getConnection(String)
,
Sender
public static Sender getSender(java.lang.String configurationName, java.util.Properties props) throws ConnectionException
ConnectionException
getConnection(String,java.util.Properties)
,
Sender
public static Receiver getReceiver(java.lang.String configurationName) throws ConnectionException
ConnectionException
getConnection(String)
,
Receiver
public static Receiver getReceiver(java.lang.String configurationName, java.util.Properties props) throws ConnectionException
ConnectionException
getConnection(String,java.util.Properties)
,
Receiver
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |