aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Martin Fowlers Plugin Factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Martin Fowlers Plugin Factory" Watch "Martin Fowlers Plugin Factory" New topic
Author

Martin Fowlers Plugin Factory

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
Does anyone have an idea how a plugin factory would be implemented and how it differs from a normal factory??

Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Rajesh Khan wrote:Does anyone have an idea how a plugin factory would be implemented and how it differs from a normal factory??


may be it would be useful to tell about the plugin factory. So that a comparison can be drawn between the two. (I am not aware/familiar with plugin factory)


Mohamed Sanaulla | My Blog
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Ok I just read about Plugin Factory, it more or less similar to factory pattern in the sense both of them are used to return instance of some implementation of an interface. The word plugin is used because you give your code a kind of plugabble behavior- you have one interface and one implementation to start with, if you get a new requirement for the same feature you just have to create a new implementation and then enhance the factory to return you the instance of correct implementation. So you see its kind of adding a new plugin to your code. May be you can read this for more details and a specific example.
Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
Thank you for the link. Id look into it and post back if i have any questions. Till that time I am keeping this thread open.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Martin Fowlers Plugin Factory