/** * Creates a renderlet service registered using the given bundle context. Using * This method ensures that the passed BundleContext is used to determine the priority * of the renderlets. * * @param location * @param rdfType * @param modePattern * @param mediaType * @param callerBundleContext * @return */ public ServiceRegistration registerScalaServerPage(URL location, IRI rdfType, String modePattern, MediaType mediaType, BundleContext callerBundleContext) { TypeRenderlet sspTypeRenderlet = new SspTypeRenderlet(location, rdfType, modePattern, mediaType, scalaCompilerService); return callerBundleContext.registerService(TypeRenderlet.class.getName(), sspTypeRenderlet, null); }