S
Sinex
Hi,
I want to build an application that triggers different algorithms. The
algorithms will be developed as class libraries over a period of time. I
want to just plug-in these libraries as and when they get developed. The
'interface' for all the algorithms will be same...only the implementation
keeps changing. The main application will make a decision at run time (based
on some parameters) as to which algorithm to use.
I want it to work this way:
1. I specify which library (algorithm) to use in the config file.
2. The application should load the corresponding library and call
the methods in it.
3. When a new algorithm is developed, I want to just add the
library(dll) to the GAC and add an entry in the config file...and the
application should be able to load this new dll if needed at run time.
I have some vague idea that this has to do with Reflection...but am not
able to get started. Will appreciate any comments on the design too...if
there are some standard patterns etc.
....Sinex.
I want to build an application that triggers different algorithms. The
algorithms will be developed as class libraries over a period of time. I
want to just plug-in these libraries as and when they get developed. The
'interface' for all the algorithms will be same...only the implementation
keeps changing. The main application will make a decision at run time (based
on some parameters) as to which algorithm to use.
I want it to work this way:
1. I specify which library (algorithm) to use in the config file.
2. The application should load the corresponding library and call
the methods in it.
3. When a new algorithm is developed, I want to just add the
library(dll) to the GAC and add an entry in the config file...and the
application should be able to load this new dll if needed at run time.
I have some vague idea that this has to do with Reflection...but am not
able to get started. Will appreciate any comments on the design too...if
there are some standard patterns etc.
....Sinex.