com.dukascopy.api.system
Class ClientFactory

java.lang.Object
  extended by com.dukascopy.api.system.ClientFactory

public class ClientFactory
extends Object

Factory to create IClient instance


Constructor Summary
ClientFactory()
           
 
Method Summary
static IClient getDefaultInstance()
          Returns default instance of Dukascopy IClient.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientFactory

public ClientFactory()
Method Detail

getDefaultInstance

public static IClient getDefaultInstance()
                                  throws ClassNotFoundException,
                                         IllegalAccessException,
                                         InstantiationException
Returns default instance of Dukascopy IClient. Instance is created only once, each call will return the same instance

Returns:
instance of IClient
Throws:
ClassNotFoundException - if jar file with implementation was not found
IllegalAccessException - if there is some security problems
InstantiationException - if it's not possible to instantiate new instance of Dukascopy IClient


Copyright © 2011. All Rights Reserved.