Search code examples
javaseamseam2seam-gen

what is different between @In(injected) and @Out(outjected) in SEAM


I read in many book but still i did't understand what is the main difference between @In(injected) and @Out(outjected), i am only aware with @In(injected) , i don't know where to use @Out(outjected) so please explain me with an example.


Solution

  • From what I understand:

    • @In(jection) - this injects the object from the "component pool" just before flow enters the class.
    • @Out(jection) - is what happens at the end of the flow, just after the flow leaves the class, the component object is retained in the "component pool" for later use.

    HTH