use of org.apache.jackrabbit.oak.run.osgi.ServiceRegistryProvider in project jackrabbit-oak by apache.
the class RepositoryStartupServlet method configWebConsoleSecurityProvider.
private void configWebConsoleSecurityProvider(Repository repository) {
if (repository instanceof ServiceRegistryProvider) {
PojoServiceRegistry registry = ((ServiceRegistryProvider) repository).getServiceRegistry();
registry.registerService(WebConsoleSecurityProvider.class.getName(), new RepositorySecurityProvider(repository), null);
}
}
use of org.apache.jackrabbit.oak.run.osgi.ServiceRegistryProvider in project jackrabbit-oak by apache.
the class WebConsoleSupport method postConstruct.
@PostConstruct
private void postConstruct() throws Exception {
PojoServiceRegistry reg = ((ServiceRegistryProvider) repository).getServiceRegistry();
//Configure repository backed SecurityProvider
reg.registerService(WebConsoleSecurityProvider.class.getName(), new RepositorySecurityProvider(), null);
//Expose the Spring Application context to Script Console access
reg.registerService(ApplicationContext.class.getName(), context, null);
}
Aggregations