Differences between revisions 4 and 5
Revision 4 as of 2004-06-25 13:59:32
Size: 1161
Editor: cache4-outside-b
Comment: redirecting
Revision 5 as of 2009-09-20 23:16:37
Size: 1161
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
[Return to ["AvalonFAQ"]"] [Return to [[AvalonFAQ]]"]

What's the difference between a Component and a Service?

Usually not much.

[begin Avalon flash-back...]

In the beginning there was the Excalibur Component Manager (ECM) which was a basic Avalon container. All the components had to implement a marker interface named Component This often made it difficult to migrate existing applications to Avalon. So, an effort was made to update the framework to allow normal Java Objects to be handed by a container, not just object which implemented the Component interface.

[fast-forward to today...]

The ServiceManager and Serviceable interface allow newer Avalon containers to handle normal Java Objects, not just Components. This is the only real difference between a ServiceManager and a ComponentManager. Consequently, the words "service" and "component" have often been used interchangeably. Since the change, service has sometimes been used to refer to the interface (or role) and component refer to the implementation, but in general, the two terms mean the same thing.

For more information see the ContainerStory


[Return to AvalonFAQ"]

AvalonFAQ/ComponentVsService (last edited 2009-09-20 23:16:37 by localhost)