W
Walter L. Williams
I'm not sure this is possible, but is there an elegant way to ask for a list
of objects who implement an interface?
Basically what I want to do is create a top level shell that can query dlls
in its directory for a certain interface. It would be kind of like a
plug-in. I would like a call that returns an array of interface pointers,
so that I could just drop in a new dll and the next time the call is made,
it is included. The shell should not have to change to accomodate new
plug-ins.
I have the following interface:
public interface IFileParser
{
String GetFileFilter ();
Boolean ParseFile (String strFile, AddItemDelegate delegateAddItem);
}
Elsewhere, I want to call something like this:
IFileParser[] arrayFileParsers = GetIFileParserImplementors();
Does the framework provide anything for this or what approaches would be
advisable?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com
of objects who implement an interface?
Basically what I want to do is create a top level shell that can query dlls
in its directory for a certain interface. It would be kind of like a
plug-in. I would like a call that returns an array of interface pointers,
so that I could just drop in a new dll and the next time the call is made,
it is included. The shell should not have to change to accomodate new
plug-ins.
I have the following interface:
public interface IFileParser
{
String GetFileFilter ();
Boolean ParseFile (String strFile, AddItemDelegate delegateAddItem);
}
Elsewhere, I want to call something like this:
IFileParser[] arrayFileParsers = GetIFileParserImplementors();
Does the framework provide anything for this or what approaches would be
advisable?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com