com.bankframe.ei.channel.client
Class ChannelClientFactory

java.lang.Object
  extended bycom.bankframe.ei.channel.client.ChannelClientFactory

public class ChannelClientFactory
extends java.lang.Object


Constructor Summary
ChannelClientFactory()
           
 
Method Summary
static ChannelClient getChannelClient()
          Invokes getChannelClient(String) using CHANNEL_CLIENT_CLASS_NAME as default value
static ChannelClient getChannelClient(java.lang.String clientName)
          Get an instance of a channel manager described in the properties file with the key specified in clientName.
static java.lang.String getClientChannelManagerClassName()
          Get the name of the channel client last created
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelClientFactory

public ChannelClientFactory()
Method Detail

getChannelClient

public static ChannelClient getChannelClient()
                                      throws ProcessingErrorException
Invokes getChannelClient(String) using CHANNEL_CLIENT_CLASS_NAME as default value

Returns:
A channel manager object
Throws:
ProcessingErrorException - if the class cannot be created

getChannelClient

public static ChannelClient getChannelClient(java.lang.String clientName)
                                      throws ProcessingErrorException
Get an instance of a channel manager described in the properties file with the key specified in clientName. This factory class has a static variable called channelTable which the instanciated channelClient is referenced by clientName.
If channel.enforceSingleton is true then this channelClient instance is always returned. Otherwise createChannelClient(String) is called again to create a new instance everytime getChannelClient(String) is called. The most recent instance of the channel client created is refered to in the static variable channelTable.

Returns:
A channel manager object
Throws:
ProcessingErrorException - if the class cannot be created

getClientChannelManagerClassName

public static java.lang.String getClientChannelManagerClassName()
Get the name of the channel client last created

Returns:
The channel manager class name


Copyright © 2004 Siebel Systems, Inc. All rights reserved.