java - Abstract Factory Design Pattern for remote file transfer app -


i have built java application based on ssh protocol transfers files , going extend protocols such ftp, sftp. each protocol have methods such login, list files, , download files.

i want in abstract factory pattern, implementation model this?

since need adapt different mechanics\protocols, can implement adapter pattern. also, adapter can chosen @ runtime, can implement factory pattern instantiate adapter. , strategy pattern have adapters , factories. being done ioc inject dependencies adapters or factories


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -