Remoting working
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / Kernel.java
index c813a9a37b207ee88cd6db20485419743ad147c2..c38a4b29a73744eb4d553941bd646a0285066828 100644 (file)
@@ -27,9 +27,9 @@ final class Kernel {
        private final BundleContext bundleContext;
 
        private JackrabbitNode node;
-       private OsgiJackrabbitRepositoryFactory repositoryFactory;
+       private RepositoryFactory repositoryFactory;
        private NodeSecurity nodeSecurity;
-       private NodeHttpFilter httpFilter;
+       private NodeHttp nodeHttp;
 
        Kernel(BundleContext bundleContext) {
                this.bundleContext = bundleContext;
@@ -45,14 +45,14 @@ final class Kernel {
                        node = new JackrabbitNode(bundleContext);
                        repositoryFactory = new OsgiJackrabbitRepositoryFactory();
                        nodeSecurity = new NodeSecurity(bundleContext, node);
-                       httpFilter = new NodeHttpFilter(bundleContext, nodeSecurity);
+                       nodeHttp = new NodeHttp(bundleContext, node, nodeSecurity);
 
                        // Publish services to OSGi register
                        nodeSecurity.publish();
                        node.publish();
                        bundleContext.registerService(RepositoryFactory.class,
                                        repositoryFactory, null);
-                       httpFilter.publish();
+                       nodeHttp.publish();
                } catch (Exception e) {
                        log.error("Cannot initialize Argeo CMS", e);
                        throw new ArgeoException("Cannot initialize", e);
@@ -67,7 +67,7 @@ final class Kernel {
        void destroy() {
                long begin = System.currentTimeMillis();
 
-               httpFilter = null;
+               nodeHttp = null;
                nodeSecurity.destroy();
                node.destroy();