Belaran, I think you've gotten a few things backwards here ;-)
You only specify a <parameters-schema> inside a <service-point> if the service is a service implementation factory. In your case the schema you define is a configuration contributions schema, so you should define it as a <schema> element inside the <configuration-point>. You can then also drop the "id" attribute on <schema> and the "schema-id" attribute on <configuration-point>. Now, if your "serviceAService" needs access to the "conf" configuration, then you must inject it inside the <construct> element using a <set-configuration> element. This will inject a java.util.List (of OtherComponentImpl objects) into a property of your service. Hope that helps, --knut On 6/8/05, belaran <[EMAIL PROTECTED]> wrote: > Hi again ! > > I've a little question about parameters schema and actual object. > > So there is my xml : > ... > <service-point id="serviceAService" interface="IAService"> > <parameters-schema id="object"> > <element name="OtherComponent"> > <attribute name="arg" > required="true"> > <conversion > class="OtherComponentImpl"> > </element> > </parameters-schema> > <invoke-factory> > <construct class="AService"> > </invoke-factory> > </service-point> > <configuration-point schema-id="object" id="conf"> > </configuration-point> > > <contribution configuration-id="conf"> > <OtherComponent arg="myArg"'/> > </contribution> > > <contribution configuration-id="conf"> > <OtherComponent arg="OtherPossibleArg"'/> > </contribution> > ... > > > When invoke, how the factory will construct my object "OtherComponent" > that is required by my IAService ? Where is it going to find the > proper value for "arg" ? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- knut --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
