2

I try to get beans generated with JAXB, where the getter-Methods have a implicit initialization (lazy initialization) like in the following example.

public test.Address getAddress()
{
    if (_address==null)
    {
        setAddress(new test.Address());
    }
    return _address;
}

Is this possible at all?

рüффп
  • 5,172
  • 34
  • 67
  • 113
Chris Pit
  • 21
  • 3

0 Answers0