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.


Constructor Index

 o SDKFactory()

Method Index

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

Constructors

 o SDKFactory
 public SDKFactory()

Methods

 o 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
 o getInstance
 public static SDKFactory getInstance()
public static SDKFactory getInstance() method is a class method, retuning the class instance

Returns:
SDKFactory
 o 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
 o 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
 o 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