Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Beans, Dynamic linking?

Hello,

Is it possible to dynamically link a bean to an application?

What I would like to achieve is, I have my main application that just a framework
for calculating stuff, the actual calculations are implemented in beans.
So what I would like to have is, when new beans are created for the application
to dl them and dynamically link to them.
Plese note that at the design there is no idea what beans might be available
in future.

Your ideas please

Tariq
[511 byte] By [Tariq] at [2007-11-9 21:19:40]
# 1 Re: Beans, Dynamic linking?
Have them all implement an interface or extend an abstract/super class. You
will probably need some Factory class or properties file to provide the list
of calc classes. I am currently doing this and it works well.

Mark

"Tariq" <Tariq@omnibis.com> wrote:
>
>Hello,
>
>Is it possible to dynamically link a bean to an application?
>
>What I would like to achieve is, I have my main application that just a
framework
>for calculating stuff, the actual calculations are implemented in beans.
>So what I would like to have is, when new beans are created for the application
>to dl them and dynamically link to them.
>Plese note that at the design there is no idea what beans might be available
>in future.
>
>Your ideas please
>
>Tariq
MarkN at 2007-11-11 23:02:55 >