/[Apache-SVN]
ViewVC logotype

Revision 1001175


Jump to revision: Previous Next
Author: clement
Date: Sat Sep 25 09:42:09 2010 UTC (14 years, 2 months ago)
Changed paths: 7
Log Message:
Fix FELIX-2622 Support static service properties that are not mirrored into fields
Introduce a new StaticServiceProperty annotation:
@Component
@Provides(
		specifications= {FooService.class, BarService.class},
		properties= {
				@StaticServiceProperty(name="prop1", value="prop1", type="java.lang.String"),
				@StaticServiceProperty(name="prop2", type="java.lang.String"),
				@StaticServiceProperty(name="props", value="{prop1, prop2}", type="string[]"),
				@StaticServiceProperty(name="mandatory1", mandatory=true, type="string")
		})
		
To improve the error management, we can't use the ServiceProperty annotation as the type attribute is mandatory.		


Changed paths

Path Details
Directoryfelix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/annotations/Provides.java modified , text changed
Directoryfelix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/annotations/StaticServiceProperty.java added
Directoryfelix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/FieldCollector.java modified , text changed
Directoryfelix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MetadataCollector.java modified , text changed
Directoryfelix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/PropertyAnnotationParser.java added
Directoryfelix/trunk/ipojo/tests/core/annotations/src/main/java/org/apache/felix/ipojo/test/scenarios/annotations/ServiceProdiving.java modified , text changed
Directoryfelix/trunk/ipojo/tests/core/annotations/src/main/java/org/apache/felix/ipojo/test/scenarios/component/ProvidesStaticProperties.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26