[Clam-devel] Refactoring the factory: new CLAM::Registrator class based

Andreas Calvo flipy.bcn at gmail.com
Thu Jun 7 10:27:07 PDT 2007


In order to register plugins, which aren't statically defined since you must
explore a library and load a specific one, a small refactoring of the
factory was needed.
First step was to create a complete separate Factory (called LadspaFactory),
which stores LadspaWrapperCreator objects and returns a new LadspaWrapper
object.
With this patch, a new CLAM::Registrator has been added, supporting class
objects.
So now, every call to the registrator actually registers it twice, one with
the old and the new one.
With the new one, notice that a call for Create of the class.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070607/0fb89a41/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newFactory.patch
Type: text/x-patch
Size: 6328 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070607/0fb89a41/attachment-0003.bin>


More information about the clam-devel mailing list