And I read another post abt a similar issue by Stephen on the weekend, in
which he mentioned that " If you are thinking about invoking a method on
your component..... then you should be either creating a component with a
dependency on the first, or creating a unit test".

So if I have some existing programs and I want to use the services offered
by some new components, so would I have to also convert those existing
programs to be components. If I have a component that just gives me say a
random number, then any program that wants to use the component has to be a
component also ???????

Vikas

-----Original Message-----
From: Vikas Phonsa [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 4:18 PM
To: 'Avalon framework users'
Subject: Classloader and Container

Hi Guys,

Could someone pls explain what exactly is the difference between a container
and a classloader in Merlin.


The article "Developing with Avalon" says :

""The code that creates the Component is that Component's Container. The
Container is responsible for managing the Component's lifecycle from
construction through destruction"" So the container code would basically be
another java class then, right ??

So when we say the ECM is a container or Merlin is a container, are we
implying that they come with a java class that could load and manage our
components.

And in Merlin block.xml when we say : <container name="tutorial"> what are
we doing. Is a java class being created or loaded which is acting as the
container for our components specified in the block.xml. If yes, then which
class is that.

And after that, say I want to use the RandomGenerator component that is
included in the examples to print a list of randomly generated numbers for
me on command line. Just like we run any simple java program from command
line.

So I want to have a client program that wants to call a method in the
RandomGenerator component. And that client program would run from command
like -> java client. So how is that done. Ultimate aim of having and loading
components is so that other applications can use those, right ?

I would appreciate thoughts, ideas ?

Thanks a lot

Vikas





-----Original Message-----
From: Timothy Bennett [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Are there any absolute beginners here

Vikas Phonsa wrote:

> 
> It would be great if you could supply us with that application and
> instructions about how to run/use it. And also any other documentation abt
> it that could help.
> 

gimme a day or two to pull it together...



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

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

Reply via email to