package org.marketcetera.saclient; import org.marketcetera.util.misc.ClassVersion; /* $License$ */ /** * Factory for creating remote connections to the Strategy Agent. * * @author anshul@marketcetera.com * @version $Id: SAClientFactoryImpl.java 16879 2014-04-15 21:40:25Z colin $ * @since 2.0.0 */ @ClassVersion("$Id: SAClientFactoryImpl.java 16879 2014-04-15 21:40:25Z colin $") public class SAClientFactoryImpl implements SAClientFactory { /* (non-Javadoc) * @see org.marketcetera.saclient.SAClientFactory#create(org.marketcetera.saclient.SAClientParameters) */ @Override public SAClient create(SAClientParameters inParameters) { return new SAClientImpl(inParameters); } /** * Returns the singleton factory instance that can be used to * create clients to communicate with the remote strategy agents. * * @return the singleton factory instance. */ public static SAClientFactoryImpl getInstance() { return sInstance; } /** * Creates an instance. */ protected SAClientFactoryImpl() {} /** * The singleton factory instance. */ private final static SAClientFactoryImpl sInstance = new SAClientFactoryImpl(); }