Hi,

I am new to the Avalon Framework. Please forgive me and correct me if I am wrong some where. I am impressed with the Avalon component architecure. I was always in search of this kind of architecture and feel that Avalon is what I always needed.

While reading through the "Developling With Aapche Avalon" guide I come accross the sample code on page 35. In the sample code

DocumentRepository docs = new DatabaseDocumentRespository();
GuardianComponent guard = new DcoumentGuardianComponent();

docs and guard are instances of type DocumentRepository and GuardianComponent respectively.

Later in the code, the docs and guard object calls the lifecycle methods of the DatabaseDocumentRespoitory and DocumentGuardianComponent components. Since the work interfaces should not extend the framework lifecycle methods (as mentioned somewhere else in the same document), this code will never compile.

Now, my question is how should I instantiate my components (if I dont want to use any Avalon containers) so that the component instance can have access to lifecycle and work interface methods.


Lifecycle method of type DocumentRepository and GuardianComponent work interfaces whereas the lifecycle methods are implemented by the DatabaseDocumentRespository and DocumentGuardianComponent classes. It seems to me that this code will never compile.

Looking forward for sincer advice and guidence.

Raj Saini



--
To unsubscribe, e-mail: <mailto:avalon-users-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-users-help@;jakarta.apache.org>

Reply via email to