Apply patch from FELIX-3789 - Deadlock due to synchronization on INSTANCE_NAME

We changed how the instance names are checked and computed. Notice that a side effect of this approach is that factories must have unique names. Even if it was the official way, the former implementation was not enforcing this.  

When an instance target a specific version, and if the name is set and already taken, the factory version is appended to the end of the instance name (given_instance_name-factory_version)

Also fixed name extraction issue in handlers for composite.




git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1423321 13f79535-47bb-0310-9956-ffa450edef68
2 files changed