com.epam.fixengine
Class DefaultFIXSessionFactoryStrategy

java.lang.Object
  extended by com.epam.fixengine.DefaultFIXSessionFactoryStrategy
All Implemented Interfaces:
FIXSessionFactoryStrategy

public class DefaultFIXSessionFactoryStrategy
extends Object
implements FIXSessionFactoryStrategy

Default fix session factory strategy implementation. This class provides access to FIX 4.0 - FIX 5.0 SP2 session factories.

See Also:
FIXSessionFactoryStrategy

Constructor Summary
DefaultFIXSessionFactoryStrategy()
          Creates the DefaultFIXSessionFactoryStrategy.
 
Method Summary
 FIXSessionFactory getFIXSessionFactory(SessionParameters sessionParameters)
          Gets fix session factory.
 void setAppVersionFactory(FIXVersion appVersion, FIXSessionFactory fixSessionFactory)
          Sets a new session factory for appVersion.
 void setFIXVersionFactory(FIXVersion fixVersion, FIXSessionFactory fixSessionFactory)
          Sets a new session factory for fixVersion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFIXSessionFactoryStrategy

public DefaultFIXSessionFactoryStrategy()
Creates the DefaultFIXSessionFactoryStrategy.

Method Detail

setFIXVersionFactory

public void setFIXVersionFactory(FIXVersion fixVersion,
                                 FIXSessionFactory fixSessionFactory)
Sets a new session factory for fixVersion.

Parameters:
fixVersion - the fix version
fixSessionFactory - the fix session factory

setAppVersionFactory

public void setAppVersionFactory(FIXVersion appVersion,
                                 FIXSessionFactory fixSessionFactory)
Sets a new session factory for appVersion.

Parameters:
appVersion - the app fix version
fixSessionFactory - the fix session factory

getFIXSessionFactory

public FIXSessionFactory getFIXSessionFactory(SessionParameters sessionParameters)
Gets fix session factory.

Specified by:
getFIXSessionFactory in interface FIXSessionFactoryStrategy
Parameters:
sessionParameters - the session parameters
Returns:
FIXSessionFactory
Throws:
IllegalArgumentException - if session factory not exists.


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.