Niclas Hedhman wrote:
On Wed, Aug 26, 2009 at 10:33 AM, Rickard Öberg<[email protected]> wrote:

Blah, forget my previous reply, it should be this:
@Uses ServiceDescriptor descriptor;

Are you sure??

See StateInjectionProviderFactory, line 49;

            else if (resolution.object() instanceof ServiceDescriptor)

From that I conclude it must be;

@State ServiceDescriptor descriptor;

as I originally said...

Read the next line too....

            else if (resolution.object() instanceof ServiceDescriptor)
descriptor = ( (ServiceDescriptor) resolution.object() ).state();

The if-switch is just to handle the different types of composites, but what is being injected is the property.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to