]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/internal/kernel/Kernel.java
Improve login
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / Kernel.java
index c38a4b29a73744eb4d553941bd646a0285066828..e38704d5cd67df3f2571137ca2ce5f01f2e87657 100644 (file)
@@ -23,6 +23,7 @@ import org.springframework.security.core.context.SecurityContextHolder;
  */
 final class Kernel {
        private final static Log log = LogFactory.getLog(Kernel.class);
+//     private static final String PROP_WORKBENCH_AUTOSTART = "org.eclipse.rap.workbenchAutostart";
 
        private final BundleContext bundleContext;
 
@@ -47,7 +48,7 @@ final class Kernel {
                        nodeSecurity = new NodeSecurity(bundleContext, node);
                        nodeHttp = new NodeHttp(bundleContext, node, nodeSecurity);
 
-                       // Publish services to OSGi register
+                       // Publish services to OSGi
                        nodeSecurity.publish();
                        node.publish();
                        bundleContext.registerService(RepositoryFactory.class,
@@ -76,6 +77,17 @@ final class Kernel {
                                + (duration % 1000) + "s ##");
        }
 
+//     private void registerWorkbench(final WorkbenchApplicationConfiguration wac) {
+//             new Thread("Worbench Launcher") {
+//                     public void run() {
+//                             Hashtable<String, String> props = new Hashtable<String, String>();
+//                             props.put(ApplicationLauncher.PROPERTY_CONTEXT_NAME, "ui");
+//                             workbenchReg = bundleContext.registerService(
+//                                             ApplicationConfiguration.class, wac, props);
+//                     }
+//             }.start();
+//     }
+
        private void directorsCut() {
                final long ms = 128l + (long) (Math.random() * 128d);
                log.info("Spend " + ms + "ms"