Hi,
We have written a number of components that are managed by the Excalibur
Component Manager. I have a question regrading the use of the Component
interface. Basically where should it be specified? Should the implementation
class of the component implement it or should the role interface for the
component inherit it.
eg
public class DefaultPersonService implements Component, PersonService,
Composable, SingleThreaded
{
--
}
or
public interface PersonService inherits Component
{
--
}
If we have the implementation class implementing component the when we issue
a release of the component we must use a cast as below
manager.release((Component)personService);
If we inherit Component in the role interface we can write
manager.release(personManager);
I think the latter is much nicer but as we are new to avalon some guidance
would be much appreciated. In looking through various samples I have seen
both approaches used.
Thanks
Bill
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>