Java Plugin Pattern -
I am starting a Java and I appreciate it if someone can tell here that Martin Fowler's How to implement plugins / P>
Thank you in advance.
Simply, you want to define an interface for operations, and at that time Pass an object on which the interface implements. Therefore, for example, you can communicate through local shared memory and through remote TCP / IP You create an interface, call it at IConnection send < Call on / code> and recv () , and then apply it to two squares, localization and longdistance connection .
Then you have some other class which needs to be communicated, we say that TelephoneCall .
To make a local call, you
telephone call call = new telephone call (new local connection ()); To make a long distance call, you
telephone call calls = new telephone pen (new longstanding connection); and the signature of the manufacturer
public telephone call (connect connection);
Comments
Post a Comment