Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectVisitor.java')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectVisitor.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectVisitor.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectVisitor.java
new file mode 100644
index 00000000..71a5e400
--- /dev/null
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/IMavenProjectVisitor.java
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2008-2010 Sonatype, Inc.
+ * 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:
+ * Sonatype, Inc. - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.m2e.core.project;
+
+import org.eclipse.core.runtime.CoreException;
+
+/**
+ * This interface is implemented by clients that visit MavenProject tree.
+ */
+public interface IMavenProjectVisitor {
+
+ public static int NONE = 0;
+
+ public static int LOAD = 1 << 0;
+
+ /**
+ * Visit Maven project or project module
+ *
+ * @param projectFacade a facade for visited Maven project
+ * @return true if nested artifacts and modules should be visited
+ */
+ public boolean visit(IMavenProjectFacade projectFacade) throws CoreException;
+
+ /**
+ * Visit Maven project dependency/artifact
+ *
+ * @param projectFacade a facade for visited Maven project
+ * @param artifact an artifact for project dependency
+ */
+// public void visit(IMavenProjectFacade projectFacade, Artifact artifact);
+
+}

Back to the top