Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-deploy')
-rw-r--r--jetty-deploy/src/main/java/org/eclipse/jetty/deploy/DeploymentManager.java25
1 files changed, 4 insertions, 21 deletions
diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/DeploymentManager.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/DeploymentManager.java
index 9c136a6a29..c2eee61184 100644
--- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/DeploymentManager.java
+++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/DeploymentManager.java
@@ -24,6 +24,8 @@ import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
+import java.util.Queue;
+import java.util.concurrent.ConcurrentLinkedQueue;
import org.eclipse.jetty.deploy.bindings.StandardDeployer;
import org.eclipse.jetty.deploy.bindings.StandardStarter;
@@ -110,7 +112,7 @@ public class DeploymentManager extends AbstractLifeCycle
private final List<AppProvider> _providers = new ArrayList<AppProvider>();
private final AppLifeCycle _lifecycle = new AppLifeCycle();
- private final List<AppEntry> _apps = new LinkedList<AppEntry>();
+ private final Queue<AppEntry> _apps = new ConcurrentLinkedQueue<AppEntry>();
private AttributesMap _contextAttributes = new AttributesMap();
private ContextHandlerCollection _contexts;
private boolean _useStandardBindings = true;
@@ -232,25 +234,6 @@ public class DeploymentManager extends AbstractLifeCycle
super.doStop();
}
- /*
- private AppEntry findAppByContextId(String contextId)
- {
- if (contextId == null)
- {
- return null;
- }
-
- for (AppEntry entry : _apps)
- {
- if (contextId.equals(entry.app.getContextId()))
- {
- return entry;
- }
- }
- return null;
- }
- */
-
private AppEntry findAppByOriginId(String originId)
{
if (originId == null)
@@ -405,7 +388,7 @@ public class DeploymentManager extends AbstractLifeCycle
*/
public void removeApp(App app)
{
- ListIterator<AppEntry> it = _apps.listIterator();
+ Iterator<AppEntry> it = _apps.iterator();
while (it.hasNext())
{
AppEntry entry = it.next();

Back to the top