ruby java bridge interface