Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-10 10:46:44 +0000
committerEike Stepper2012-06-10 10:46:44 +0000
commitc1706d17c98cb14df6c59b8fa5d87ee84e421177 (patch)
tree8d67fb7af97ae44fd33f6c59797e7b080de02714 /plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java
parent971a305bbd3c55ffc647fba815c2886de0127fc3 (diff)
downloadcdo-c1706d17c98cb14df6c59b8fa5d87ee84e421177.tar.gz
cdo-c1706d17c98cb14df6c59b8fa5d87ee84e421177.tar.xz
cdo-c1706d17c98cb14df6c59b8fa5d87ee84e421177.zip
[380629] Design a default Security model
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380629
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java130
1 files changed, 66 insertions, 64 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java b/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java
index 2fd7010ba5..13643c6ca8 100644
--- a/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java
+++ b/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/bundle/Net4jAppExtension.java
@@ -1,64 +1,66 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.server.internal.net4j.bundle;
-
-import org.eclipse.emf.cdo.spi.server.IAppExtension;
-
-import org.eclipse.net4j.TransportConfigurator;
-import org.eclipse.net4j.acceptor.IAcceptor;
-import org.eclipse.net4j.util.container.IManagedContainer;
-import org.eclipse.net4j.util.container.IPluginContainer;
-
-import java.io.File;
-
-/**
- * @author Eike Stepper
- */
-public class Net4jAppExtension implements IAppExtension
-{
- private IAcceptor[] acceptors;
-
- public Net4jAppExtension()
- {
- }
-
- public void start(File configFile) throws Exception
- {
- OM.LOG.info("Net4j extension starting"); //$NON-NLS-1$
- TransportConfigurator net4jConfigurator = new TransportConfigurator(getContainer());
- acceptors = net4jConfigurator.configure(configFile);
- if (acceptors == null || acceptors.length == 0)
- {
- OM.LOG.warn("No Net4j acceptors configured" + configFile.getAbsolutePath()); //$NON-NLS-1$
- }
-
- OM.LOG.info("Net4j extension started"); //$NON-NLS-1$
- }
-
- public void stop() throws Exception
- {
- OM.LOG.info("Net4j extension stopping"); //$NON-NLS-1$
- if (acceptors != null)
- {
- for (IAcceptor acceptor : acceptors)
- {
- acceptor.close();
- }
- }
-
- OM.LOG.info("Net4j extension stopped"); //$NON-NLS-1$
- }
-
- public static IManagedContainer getContainer()
- {
- return IPluginContainer.INSTANCE;
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.server.internal.net4j.bundle;
+
+import org.eclipse.emf.cdo.spi.server.IAppExtension;
+
+import org.eclipse.net4j.TransportConfigurator;
+import org.eclipse.net4j.acceptor.IAcceptor;
+import org.eclipse.net4j.util.container.IManagedContainer;
+import org.eclipse.net4j.util.container.IPluginContainer;
+
+import java.io.File;
+
+/**
+ * @author Eike Stepper
+ */
+public class Net4jAppExtension implements IAppExtension
+{
+ private IAcceptor[] acceptors;
+
+ public Net4jAppExtension()
+ {
+ }
+
+ public void start(File configFile) throws Exception
+ {
+ OM.LOG.info("Net4j extension starting"); //$NON-NLS-1$
+
+ TransportConfigurator net4jConfigurator = new TransportConfigurator(getContainer());
+ acceptors = net4jConfigurator.configure(configFile);
+ if (acceptors == null || acceptors.length == 0)
+ {
+ OM.LOG.warn("No Net4j acceptors configured" + configFile.getAbsolutePath()); //$NON-NLS-1$
+ }
+
+ OM.LOG.info("Net4j extension started"); //$NON-NLS-1$
+ }
+
+ public void stop() throws Exception
+ {
+ OM.LOG.info("Net4j extension stopping"); //$NON-NLS-1$
+
+ if (acceptors != null)
+ {
+ for (IAcceptor acceptor : acceptors)
+ {
+ acceptor.close();
+ }
+ }
+
+ OM.LOG.info("Net4j extension stopped"); //$NON-NLS-1$
+ }
+
+ public static IManagedContainer getContainer()
+ {
+ return IPluginContainer.INSTANCE;
+ }
+}

Back to the top