Class
PUBLIC CLASS interfaceFactory {
OutboundDbconnection OutboundDbconnection = NULL;
public OutBoundDbConnection getOutboundDbConnection () throws InstantiationException, IllegalAccessException, ClassNotFoundException {outboundDbConnection = (OutBoundDbConnection) Class .forName ( "com.isoftstone.struts.biz.dao.ConnData") .newInstance (); return outboundDbConnection;}
}
interface
Public interface outbounddbconnection {
Public connection dbconnection (String DBDRIVERS, STRING DBNAME); public connection dbconnection (); public connect dbconnection1 ();
transfer
InterfaceFactory InterfaceFactory = New InterfaceFactory ();
Con = interfaceFactory.getBoundDbConnection (). dbconnection ();