This is the component wrapper for C3D, the collaborative 3D
application. This shows how a well-written application (with interfaces
describing behaviors) can easily be exported as components.
To switch from an object code to component code, you need to
- Determine the behaviors that should be turned into components.
User, Dispatcher, Renderer
Make these interfaces
We have User, Dispatcher, Renderer
interfaces in C3D
Be wary that you will want to expose only the services provided.
Methods which have to be public, but are not to be used by
inter-component communications should not be exposed
in the components interfaces (see the DispatcherLogic class)
- Create Component wrappers for these classes.
We have UserImpl, DispatcherImpl,
EngineImpl components
Make sure these implement the bind/unbind/lookup methods
- Finally, create a main class where you declare how you want the
components to be bound. Of course, you might choose to use the ADL to
specify this.
@author ProActive Team
@version 1.0, 2005/09/21
@since ProActive 2.3