Hi Paul,

I am really keen to learn and promote OSGi and enRoute in Melbourne. If you 
join me we can help each other. If you need help please do not hesitate to ask.


Cheers


________________________________
From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of Paul F Fraser <pa...@a2zliving.com>
Sent: Saturday, November 12, 2016 8:34 AM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Reference Filters

Thanks, Daghan,

I will check out the example and hopefully understand the process.
Seems that you are getting well into enRoute, a good way to go.
Not sure when I can get to an OSGi Melbourne meetup, but still on the list :-[

Paul

On 11/11/2016 9:38 PM, Daghan ACAY wrote:

Hi Paul,


You can find an example here


https://github.com/daghanacay/com.easyiot.application/blob/master/com.easyiot.heatmap.application/configuration/configuration.json



see "mqttProtocolReference.target" : "(id=ttn.staging.mqtt)",

and the corresponding binding here

https://github.com/daghanacay/com.easyiot.device/blob/master/com.easyiot.development.board1.device.provider/src/com/easyiot/development/board1/device/provider/DevelopmentBoard1Impl.java


// Bind mqttClient

        @Reference(name = "mqttProtocolReference", cardinality = 
ReferenceCardinality.OPTIONAL, policyOption = ReferencePolicyOption.GREEDY)

        private TtnMqttProtocol ttnMqttClient;


Hope to see you at OSGi meetings [??]

-Daghan

________________________________
From: osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org> 
<osgi-dev-boun...@mail.osgi.org><mailto:osgi-dev-boun...@mail.osgi.org> on 
behalf of Paul F Fraser <pa...@a2zliving.com><mailto:pa...@a2zliving.com>
Sent: Friday, November 11, 2016 7:03 AM
To: OSGi Developer Mail List
Subject: [osgi-dev] Reference Filters


Hi,

A previous discussion in this list

@Component
public class Component
{
  @Reference(target = "(alias = ${alias})"
  public void bindService(Service service)
}

and the solution proposed was to use <refname>.target as a property.

Are there any code examples available that provide more info on this technique.

I am trying to create multiple named databases and obtain unique references to 
each by their name.

Regards

Paul Fraser



_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>
https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to