Announcement Announcement Module
Collapse
No announcement yet.
Bean "encapsultated" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bean "encapsultated"

    Hi,

    generally if I have a dependency in a 3-bean-state like this:

    A-B-C
    |
    C

    with "A" that has classic get/set for B and C
    with "B" for C only

    1) is it better only A-B-C (and so with A.getB().getC()) for "A" (and so "A" has just get/set for "B")?
    2) why or why not?
    3) eventually for every "depth" (A-B-C-D-E....-Z)?

    Thanks,
    Julio

    (sorry for this stupid question)

  • #2
    I would simply inject ALL references. You don't want to have a hard reference/relation on the fact that B has a getter for C...

    Comment

    Working...
    X