This discussion is archived
1 Reply Latest reply: Jun 10, 2010 8:27 AM by 843807 RSS

Getter/Setter before constructor

843807 Newbie
Currently Being Moderated
Hi,

i'm trying to write a bean with a bunch of bound properties. I have a lsight problem in the sense i want the bean to run all the setter classes before the constructor. Basically, i want to know if whether the constructor runs first or the getter/setter method and if so which order.

The reason i ask this is because there is code in the constructor that is dependent on what i get from the setter methods. and i am having trouble synchronizing the order or have no idea at all. Any help would be appreciated. Thanks!
  • 1. Re: Getter/Setter before constructor
    843807 Newbie
    Currently Being Moderated
    Main Method/Entry point (but this does nothing for your object except gives a way in--no setting here until after the constructors run)
    Default/root constructor first
    local constructor
    --commands invoked in the local constructor
    basically everything else as it shows in your execution path.