Howto discover things over a bridge (Developing a new binding)


I’m trying to write a pure java OneWire binding for openhab2.
My plan is to have a brige for the access to the serial port and the oneWire en/decoder.
I want to run discovery service on demand by specifying a brige to find new devices.
Are there examples for this setup - or I’m wrong?