-----Mensagem original----- De: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Basically a lifestyle handler encapsulates the decision concerning when > a new instance is required. In the activation package you will find a > LifestyleManager interface, a set of implementations, and a > LifestyleManager factory. The factory is supplied with a > ComponentFactory which deals with the setup and tearddown of components. > What I think you describing in Avalon4ComponentHandler looks to me > like an implementation of a component factory. Instantiation *is* a lifecycle phase. If you don't, you would need a different componentfactory to handle Avalon - a very simple one - and a huge one to pico. > Second point - I think its a bad ide to use interface such as > Serviceable etc. to provide a ServiceManager to a factory when in fact > the factory isn't using the manager to resolve a dependency Agree. But I think its just a matter of simplest things first. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
