Tibor Mlynarik a écrit :
ServiceComposite has no metaInfo() method, but ServiceDescriptor has.
Oops sorry :)
@This
ServiceComposite myService;
@Structure
Qi4j qi4j;
@Override
public void activate()
{
ServiceDescriptor sd = qi4j.getServiceDescriptor( myService);
...
In fact, that's ServiceReference that has the metaInfo(..) method.
So a simpler way is:
@This ServiceReference<YourService> myRef;
...
myRef.metaInfo( File.class );
/Paul
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev