public static void registerKey ( Binder binder , Key < DruidNode > key ) { DruidBinders . discoveryAnnouncementBinder ( binder ) . addBinding ( ) . toInstance ( new KeyHolder <> ( key ) ) ; LifecycleModule . register ( binder , ServiceAnnouncer . class ) ; }
Requests that the keyed DruidNode instance be injected and published as part of the lifecycle .