[jboss-dev-forums] [Design of JBoss ESB] - Re: FtpClientUtil refactoring

b_georges do-not-reply at jboss.com
Fri Nov 10 08:27:59 EST 2006


Kurt,
This is where we left it . I believe this is one way of doing it.
The factory will return the corresponding implementation. So far I haven't implemented this logic, instead I am focusing to get the EdtFtpImpl and JschFtpImpl class working. [Your input is welcome though :-) ]

The method responsible for this in the factory looks like this so far:


  | public static RemoteFileSystem getRemoteFileSystem(ConfigTree p_oP, boolean p_bConnect) 
  | throws RemoteFileSystemException
  | 	{
  | 		try
  | 		{
  | 			// TODO get the implementation class from properties.
  | 
  | 			//ConfigTree cfgTree = ConfigTree.fromInputStream((InputStream)new FileInputStream("ftp-esb-properties.xml"));
  | 			return new EdtFtpImpl(p_oP,p_bConnect);
  | 		}


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984873#3984873

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984873



More information about the jboss-dev-forums mailing list