org.marketcetera.util.quickfix
Class SpringSessionSettings

java.lang.Object
  extended by org.marketcetera.util.spring.LazyBean
      extended by org.marketcetera.util.quickfix.SpringSessionSettings

public class SpringSessionSettings
extends LazyBean

A Spring-aware QuickFIX/J session settings. It also offers these extensions:

Since:
1.0.0
Version:
$Id: SpringSessionSettings.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Field Summary
static String LOG_FACTORY_CLASS_PARAM
          The parameter name for the QuickFIX/J log factory class extension parameter.
static String MESSAGE_STORE_FACTORY_CLASS_PARAM
          The parameter name for the QuickFIX/J message store factory class extension parameter.
 
Constructor Summary
SpringSessionSettings()
           
 
Method Summary
 Map<Object,Object> getDefaults()
          Returns the receiver's defaults.
 List<SpringSessionDescriptor> getDescriptors()
          Returns the receiver's session descriptors.
 LogFactory getQLogFactory()
          Returns the receiver's QuickFIX/J log factory.
 MessageStoreFactory getQMessageStoreFactory()
          Returns the receiver's QuickFIX/J message store factory.
 SessionSettings getQSettings()
          Returns the receiver's QuickFIX/J session settings.
protected  void process()
          Processes the receiver.
 void setDefaults(Map<Object,Object> defaults)
          Sets the receiver's defaults to the given ones.
 void setDescriptors(List<SpringSessionDescriptor> descriptors)
          Sets the receiver's session descriptors to the given ones.
 
Methods inherited from class org.marketcetera.util.spring.LazyBean
assertNotProcessed, ensureProcessed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_FACTORY_CLASS_PARAM

public static final String LOG_FACTORY_CLASS_PARAM
The parameter name for the QuickFIX/J log factory class extension parameter.

See Also:
Constant Field Values

MESSAGE_STORE_FACTORY_CLASS_PARAM

public static final String MESSAGE_STORE_FACTORY_CLASS_PARAM
The parameter name for the QuickFIX/J message store factory class extension parameter.

See Also:
Constant Field Values
Constructor Detail

SpringSessionSettings

public SpringSessionSettings()
Method Detail

setDefaults

public void setDefaults(Map<Object,Object> defaults)
Sets the receiver's defaults to the given ones. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.

Parameters:
defaults - The defaults. It may be null.

getDefaults

public Map<Object,Object> getDefaults()
Returns the receiver's defaults. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.

Returns:
The defaults. It may be null.

setDescriptors

public void setDescriptors(List<SpringSessionDescriptor> descriptors)
Sets the receiver's session descriptors to the given ones. This method also sets the settings of each descriptor to the receiver.

Parameters:
descriptors - The descriptors. It may be null.

getDescriptors

public List<SpringSessionDescriptor> getDescriptors()
Returns the receiver's session descriptors.

Returns:
The descriptors. It may be null.

getQSettings

public SessionSettings getQSettings()
Returns the receiver's QuickFIX/J session settings.

Returns:
The settings.

getQLogFactory

public LogFactory getQLogFactory()
Returns the receiver's QuickFIX/J log factory.

Returns:
The factory.

getQMessageStoreFactory

public MessageStoreFactory getQMessageStoreFactory()
Returns the receiver's QuickFIX/J message store factory.

Returns:
The factory.

process

protected void process()
Description copied from class: LazyBean
Processes the receiver. This method will only be called once through LazyBean.ensureProcessed().

Specified by:
process in class LazyBean


Copyright © 2012. All Rights Reserved.