public final < T > ServiceRegistration < ? > registerService ( Class < T > iface , T instance ) { Hashtable < String , String > properties = new Hashtable < String , String > ( ) ; return registerService ( iface , instance , properties ) ; }
This method should be used to register services . Services registered with this method auto deregistered during bundle stop .