protected ServiceRegistration registerProxy ( Object objectProxy , Class clazz ) { Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; ServiceRegistration registration ; registration = context . registerService ( clazz , objectProxy , props ) ; return registration ; }
Utility method to register a proxy has a Service in OSGi .