Hi Marco

> right, so I assume every Action class that u write subclasses
> PlugInManagerAction, correct?

Correct

> 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....

Well you *could* let your PluginManager handle the casting but...
Check out the Service Locator pattern  at http://java.sun.com 
I think the have an example "type-safe" implementation.

> I haven't done it and probably I won't need It much....but I m still
> Thinking... :-)

Always nice to do some thinking.. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to