    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class com.ups.xmlsdk.SDKFactory

    java.lang.Object
       |
       +----com.ups.xmlsdk.SDKFactory

public class SDKFactory
extends Object

XMLAdapterFactory is a singleton class, responsible for dynamically loading Adapters, keeping track of the loaded Adapters, and Returning loaded Adapters.

##

SDKFactory()

##

getAdapter(String)
  public synchronized Object getAdapter(String adapterName) This method is responsible for loading the class dynamically, if the class is not yet loaded.
getInstance()
  public static SDKFactory getInstance() method is a class method, retuning the class instance
getServiceContainer(String)
  public synchronized Object getServiceContainer(String containerName) This method is responsible for loading the class dynamically, if the class is not yet loaded.
getXPCIContainer(String)
  public synchronized Class getBean(String beanName) This method is responsible for loading the class dynamically, if the class is not yet loaded.
releaseResource(Object)
  Attempts to open system resources by setting referenced objects to Null.

##

SDKFactory

     public SDKFactory()

##

getAdapter

     public synchronized Object getAdapter(String adapterName) throws ClassNotFoundException, InstantiationException, IllegalAccessException

  public synchronized Object getAdapter(String adapterName) This method is responsible for loading the class dynamically, if the class is not yet loaded. It keeps track of the load classes in a hashtable.

  Parameters:
    adapterName - String, name of the Adapter to be loaded ex: com.ups.xmlsdk.shipping.ShipmentAdapter
  Returns:
    Object

getInstance

     public static SDKFactory getInstance()

  public static SDKFactory getInstance() method is a class method, retuning the class instance

  Returns:
    SDKFactory

getServiceContainer

     public synchronized Object getServiceContainer(String containerName) throws ClassNotFoundException, InstantiationException, IllegalAccessException

  public synchronized Object getServiceContainer(String containerName) This method is responsible for loading the class dynamically, if the class is not yet loaded. It keeps track of the load classes in a hashtable.

  Parameters:
    containerName - String, name of the Adapter to be loaded ex: com.ups.xmlsdk.shipping.ShipmentConfirmResponse
  Returns:
    Object

getXPCIContainer

     public synchronized Object getXPCIContainer(String beanName) throws ClassNotFoundException, IllegalAccessException, InstantiationException

  public synchronized Class getBean(String beanName) This method is responsible for loading the class dynamically, if the class is not yet loaded. It keeps track of the load classes in a hashtable. This method will only allow instantiation of xpci Beans (com.ups.xmlsdk.xpci.*)

  Parameters:
    beanName - String, name of the Bean to be loaded ex: Shipment
  Returns:
    Class

releaseResource

     public void releaseResource(Object anObject)

  Attempts to open system resources by setting referenced objects to Null.

  Parameters:
    anObject - java.lang.Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index