@Inject public RestPatchProvider( RegistryService registryService, JCRNodeFactoryService jcrNodeFactoryService, BeanConverter beanConverter, UserFactoryService userFactoryService) { Registry<String, RestProvider> registry = registryService.getRegistry(RestProvider.REST_REGISTRY); registry.add(this); this.jcrNodeFactoryService = jcrNodeFactoryService; this.beanConverter = beanConverter; this.userFactoryService = userFactoryService; }
/** * {@inheritDoc} * * @see org.sakaiproject.kernel.webapp.Initialisable#destroy() */ public void destroy() { registry.remove(this); }