You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2004/03/10 00:31:21 UTC

cocoon.createObject()

OK, I've picked up on a few email threads about the new createObject() 
and disposeObject() methods.  There's something in the release notes 
about them too, but not enough to make it clear to me how or why to use 
them.

I just started really learning Cocoon a couple of months ago, and all 
the Avalon stuff under the bonnet is really still terra incognita to 
me.  So when the docs say, "it goes through all the Avalon lifecycle 
interfaces" or whatever it says, I'm sure that means something to 
somebody, but I'm still waiting for a clue to strike.

But... as I've been writing the Java business objects for this app, I 
sometimes get this feeling that they maybe really ought to be Avalon 
components.  I don't know why I get that feeling, because I don't 
really dig Avalon yet, so it's just a feeling :-).

So... if somebody could give a brief overview, or point us to one, 
that'd be great.  It seems like these methods were added because the 
Cocoon devs want the community to move more towards some style of 
development, and if so I'm sure it would speed adoption if something 
could be done to evangelize the Avalon-unhip crowd.

~ Mark

AW: cocoon.createObject()

Posted by Marco Rolappe <m_...@web.de>.
hi mark,

you can find introductory info at http://avalon.apache.org/ (About Avalon ->
Documentation)

some key concepts are COP (Component Oriented Programming),
components/services, containers, IoC (Inversion of Control), etc.

the rough idea is to decompose your system into components/services and have
these managed by a container. I suggest you start with the documents listed
under 'Articles'. they'll tell you the basics you need to know.

you might also want to have a look at other approaches like Pico Container,
Spring Framework, etc.

  -----Ursprungliche Nachricht-----
  Von: users-return-64318-m_rolappe=web.de@cocoon.apache.org
[mailto:users-return-64318-m_rolappe=web.de@cocoon.apache.org]Im Auftrag von
Mark Lundquist
  Gesendet: Mittwoch, 10. Marz 2004 00:31
  An: users@cocoon.apache.org
  Betreff: cocoon.createObject()


  OK, I've picked up on a few email threads about the new createObject() and
disposeObject() methods. There's something in the release notes about them
too, but not enough to make it clear to me how or why to use them.

  I just started really learning Cocoon a couple of months ago, and all the
Avalon stuff under the bonnet is really still terra incognita to me. So when
the docs say, "it goes through all the Avalon lifecycle interfaces" or
whatever it says, I'm sure that means something to somebody, but I'm still
waiting for a clue to strike.

  But... as I've been writing the Java business objects for this app, I
sometimes get this feeling that they maybe really ought to be Avalon
components. I don't know why I get that feeling, because I don't really dig
Avalon yet, so it's just a feeling :-).

  So... if somebody could give a brief overview, or point us to one, that'd
be great. It seems like these methods were added because the Cocoon devs
want the community to move more towards some style of development, and if so
I'm sure it would speed adoption if something could be done to evangelize
the Avalon-unhip crowd.

  ~ Mark