org.marketcetera.util.quickfix
Class SpringSessionDescriptor

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

public class SpringSessionDescriptor
extends LazyBean

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

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

Field Summary
static String DEFAULT_DATA_DICTIONARY
          The sentinel value for the data dictionary parameter which forces validation using the default data dictionary appropriate for the FIX version implied by the descriptor's begin string.
 
Constructor Summary
SpringSessionDescriptor()
           
 
Method Summary
 Map<String,String> getDictionary()
          Returns the receiver's dictionary.
 Dictionary getQDictionary()
          Returns the receiver's QuickFIX/J dictionary.
 SessionID getQSessionID()
          Returns the receiver's QuickFIX/J session ID.
 SpringSessionSettings getSettings()
          Returns the receiver's session settings.
protected  void process()
          Processes the receiver.
 void setDictionary(Map<String,String> dictionary)
          Sets the receiver's dictionary to the given one.
 void setSettings(SpringSessionSettings settings)
          Sets the receiver's session settings 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

DEFAULT_DATA_DICTIONARY

public static final String DEFAULT_DATA_DICTIONARY
The sentinel value for the data dictionary parameter which forces validation using the default data dictionary appropriate for the FIX version implied by the descriptor's begin string.

See Also:
Constant Field Values
Constructor Detail

SpringSessionDescriptor

public SpringSessionDescriptor()
Method Detail

setDictionary

public void setDictionary(Map<String,String> dictionary)
Sets the receiver's dictionary to the given one. This dictionary is a key-value map of QuickFIX/J session parameters; it is not the data dictionary.

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

getDictionary

public Map<String,String> getDictionary()
Returns the receiver's dictionary. This dictionary is a key-value map of QuickFIX/J session parameters; it is not the data dictionary.

Returns:
The dictionary. It may be null.

setSettings

public void setSettings(SpringSessionSettings settings)
Sets the receiver's session settings to the given ones.

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

getSettings

public SpringSessionSettings getSettings()
Returns the receiver's session settings.

Returns:
The settings. It may be null.

getQDictionary

public Dictionary getQDictionary()
Returns the receiver's QuickFIX/J dictionary.

Returns:
The dictionary.

getQSessionID

public SessionID getQSessionID()
Returns the receiver's QuickFIX/J session ID.

Returns:
The ID.

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.