4 Replies Latest reply on Mar 20, 2009 10:14 AM by allforjava.allforjava.aol.in

    Whats: component definitions ?

    allforjava.allforjava.aol.in

      Hi Seam Users,


      Can I know what's component definitions in seam towards component's life?


      Possibly in layman's words or software engineeering terminology.


      Thank you.

        • 1. Re: Whats: component definitions ?
          monkeyden

          Not sure I understand exactly what you're asking but presumably you are referring to components which are defined/configured in components.xml.  Are you referring to some specific wording in the docs?

          • 2. Re: Whats: component definitions ?
            allforjava.allforjava.aol.in

            Thank you for speedy response, Kyle Burke!


            I just need the actual essence of the terminology- component defination. Whats does component definitions mean? Whats context and context variable?


            For example, instantiation mean using new operator to allocate memory or define an object.

            • 3. Re: Whats: component definitions ?
              nickarls

              simplified:



              • component definition = defining a component so that it can be placed under seam lifecycle management (@Name annotation or components.xml)

              • context = the scope of the component. Request context contain components that live only for the duration of the request etc.

              • context variable = the name (used in definition) under which a component can be found in a context

              • instantiation = getting/referring to a component from a context / manager which ensures that we get a lifecycle-managed proxy



              There is a lovely manual that touches these topics quite early on

              • 4. Re: Whats: component definitions ?
                allforjava.allforjava.aol.in
                Thank you, Nicklas for simiplified clarification. I got the difference.

                Can I get in depth details i.e any flow-diagram, etc?

                "There is a lovely manual that touches these topics quite early on"
                And, whats it about? Are u, refering to Seam-Context Component manual?



                -------------------------------------------------------
                "If a man speaks in the forest and there is no woman around to hear him, is he still wrong?"

                I say, NO!