Hello,
>But it could easily be a XML file, or anything else yes...personally I would 4 that unless u have particular requirements for storing it into the DB >> U use the PlugInMgr as singleton, correct? Coz right now I m following >> Similar 'approach' but I m storing the BD in the ServletContext, and >> what >> I don't like much is that every time I have to retrieve it, I have to >> Do a cast.... >The plugin manager is stored in ServletContext, and I have a base class >(PluginManagerAction) for my action, which have a method with the following >signature right, so I assume every Action class that u write subclasses PlugInManagerAction, correct? >public PluginManager getPluginManager(); >In my action which derives from PluginManagerAction I do this: >MyPluginInterface plugin = (MyPluginInterface) >getPluginManager().getPlugin("myplugin"); >I have to type cast the interface because getPluginManager() return the >superclass interface Plugin >What is it you don't like, when doing type casts...? I don't like putting parenthesis :-) coz everything that I get >From ServletContext is an object.... It doesn't bother me much.. but I m still wandering if I can add Let's say 10 plugIns to my app, and have a common interface so that I can just retrieve them by name without typecast.... I haven't done it and probably I won't need It much....but I m still Thinking... :-) Regards Henrik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]