Hi,

In the developing with avalon pdf, there is an example of how to implement
the compose() method :

public void compose(ComponentManager manager) throws ComponentException {
  if (this.manager == null) {
    this.manager = manager;
    myGuard = (Guardian) this.manager.lookup(Guardian.ROLE);
  }
}

I'm wondering why there is a test to verify if the manager is not null (i.e.
to verify if the compose() method has not already been called) ? I thought
that the lifecycle for composable would prevent this method being called
twice. Any reason ? If not, shouldn't we amend the doc, as most persons will
use this doc as their starting point (as I am ... :) ).

Thanks
-Vincent


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to