blob: 306f91e65f4064ba9349765ebba6129fbc79f102 [file] [log] [blame]
Pierre De Rop3a00a212015-03-01 09:27:46 +00001# Migrating from earlier versions
2
3DependencyManager 4.0 has some API changes that need to be taken into account when migrating from DependencyManager 3.
4
5* A dependency can no longer be shared accross components.
6* You no longer have to call setInstanceBound() when adding a dependency from within the init() method of a component. Therefore the setInstanceBound() method has been removed from all Dependency interfaces.
7* in the Dependency interface, the following method have been removed: isInstanceBound, invokeAdded, invokeRemoved, createCopy.
8* In the Component interface, the "Object Component.getService()" method has been replaced by the "<T> T getInstance()" method.
9* In the Component interface, the "void addStateListener(ComponentStateListener listener) method" has been replaced by the "add(ComponentStateListener listener)" method.
10* In the Component interface, the "start", "stop", "getDependencies" methods have been removed.
11* In the Component interface and in the DependencyManager class, the createTemporalServiceDependency() method is now taking a timeout parameter: createTemporalServiceDependency(long timeout).
12* The ComponentStateListener interface has changed: it is now providing a single "changed(Component c, ComponentState state)" method.
13* The DependencyManager 4 Shell commands are no longer available for framework specific shell implementations, and support the gogo shell only.
14* The TemporalServiceDependency interface has been removed.