/[Apache-SVN]
ViewVC logotype

Revision 775456


Jump to revision: Previous Next
Author: clement
Date: Sat May 16 12:30:05 2009 UTC (15 years, 6 months ago)
Changed paths: 37
Log Message:
Fix issue Felix-1159
Add a 'version' attribute to component type and instances allowing to select the component type version when an instance is declared.
<component classname="..." version="1.0"/>
<component classname="..." version="1.1"/>
<instance component="..." version="1.0"/> -> Use the version 1.0
<instance component="..." version="1.1"/> -> Use the version 1.1
<instance component="..."/> -> Any version

This commit also define the "bundle" constant reusing the bundle version:
<component classname="..." version="bundle"/> -> Use the bundle version

The API also supports the version API, add a getVersion method in the ComponentTypeDescription and in the Factory interface.




Changed paths

Path Details
Directoryfelix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java modified , text changed
Directoryfelix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/composite/CompositeComponentType.java modified , text changed
Directoryfelix/trunk/ipojo/composite/src/main/java/org/apache/felix/ipojo/composite/FactoryProxy.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/Factory.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/IPojoFactory.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/InstanceCreator.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/architecture/ComponentTypeDescription.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java modified , text changed
Directoryfelix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/parser/ManifestMetadataParser.java modified , text changed
Directoryfelix/trunk/ipojo/tests/api/src/test/java/org/apache/felix/ipojo/tests/api/PrimitiveComponentTest.java modified , text changed
Directoryfelix/trunk/ipojo/tests/composite/composite-runtime/src/main/java/org/apache/felix/ipojo/test/composite/infrastructure/FactoryManagementTest.java modified , text changed
Directoryfelix/trunk/ipojo/tests/core/factory-version/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/instances.xml added
Directoryfelix/trunk/ipojo/tests/core/factory-version/pom.xml added
Directoryfelix/trunk/ipojo/tests/core/factory-version/provider-v1.1.xml added
Directoryfelix/trunk/ipojo/tests/core/factory-version/provider-v1.xml added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/main/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/main/java/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/main/resources/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/FactoryVersionTest.java added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/IPOJOHelper.java added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/OSGiHelper.java added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/component/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/component/MyComponent.java added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/service/ added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/java/org/apache/felix/ipojo/tests/core/service/MyService.java added
Directoryfelix/trunk/ipojo/tests/core/factory-version/src/test/resources/ added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26