-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #644 - Refactor Activator to DS components
- Loading branch information
1 parent
fee4e7a
commit 25d6833
Showing
43 changed files
with
451 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "m2e-core-tests"] | ||
path = m2e-core-tests | ||
url = https://github.com/tesla/m2e-core-tests.git | ||
branch = master | ||
url = https://github.com/laeubi/m2e-core-tests.git | ||
branch = Issue_644_adjust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
org.eclipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.embedder.MavenModelManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="org.eclipse.m2e.core.embedder.MavenModelManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.embedder.MavenModelManager"/> | ||
</service> | ||
<reference cardinality="1..1" field="maven" interface="org.eclipse.m2e.core.embedder.IMaven" name="maven"/> | ||
<reference cardinality="1..1" field="projectManager" interface="org.eclipse.m2e.core.project.IMavenProjectRegistry" name="projectManager"/> | ||
<implementation class="org.eclipse.m2e.core.embedder.MavenModelManager"/> | ||
</scr:component> |
9 changes: 9 additions & 0 deletions
9
org.eclipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.embedder.MavenImpl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" deactivate="disposeContainer" name="org.eclipse.m2e.core.internal.embedder.MavenImpl"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.embedder.IMaven"/> | ||
<provide interface="org.eclipse.m2e.core.embedder.IMavenConfigurationChangeListener"/> | ||
</service> | ||
<reference cardinality="1..1" field="mavenConfiguration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="mavenConfiguration"/> | ||
<implementation class="org.eclipse.m2e.core.internal.embedder.MavenImpl"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...se.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.index.filter.ArtifactFilterManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.eclipse.m2e.core.internal.index.filter.ArtifactFilterManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.index.filter.ArtifactFilterManager"/> | ||
</service> | ||
<implementation class="org.eclipse.m2e.core.internal.index.filter.ArtifactFilterManager"/> | ||
</scr:component> |
8 changes: 8 additions & 0 deletions
8
...clipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.launch.MavenRuntimeManagerImpl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="org.eclipse.m2e.core.internal.launch.MavenRuntimeManagerImpl"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.launch.MavenRuntimeManagerImpl"/> | ||
</service> | ||
<reference cardinality="1..1" field="preferenceStore" interface="org.eclipse.core.runtime.preferences.IPreferencesService" name="preferenceStore"/> | ||
<implementation class="org.eclipse.m2e.core.internal.launch.MavenRuntimeManagerImpl"/> | ||
</scr:component> |
8 changes: 8 additions & 0 deletions
8
org.eclipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.markers.MavenMarkerManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="org.eclipse.m2e.core.internal.markers.MavenMarkerManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.markers.IMavenMarkerManager"/> | ||
</service> | ||
<reference cardinality="1..1" field="mavenConfiguration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="mavenConfiguration"/> | ||
<implementation class="org.eclipse.m2e.core.internal.markers.MavenMarkerManager"/> | ||
</scr:component> |
9 changes: 9 additions & 0 deletions
9
...se.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.preferences.MavenConfigurationImpl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" activate="init" name="org.eclipse.m2e.core.internal.preferences.MavenConfigurationImpl"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.embedder.IMavenConfiguration"/> | ||
</service> | ||
<reference bind="addConfigurationChangeListener" cardinality="0..n" interface="org.eclipse.m2e.core.embedder.IMavenConfigurationChangeListener" name="ConfigurationChangeListener" policy="dynamic" unbind="removeConfigurationChangeListener"/> | ||
<reference cardinality="1..1" field="preferenceStore" interface="org.eclipse.core.runtime.preferences.IPreferencesService" name="preferenceStore"/> | ||
<implementation class="org.eclipse.m2e.core.internal.preferences.MavenConfigurationImpl"/> | ||
</scr:component> |
15 changes: 15 additions & 0 deletions
15
...e.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="org.eclipse.m2e.core.internal.project.ProjectConfigurationManager"> | ||
<property name="event.mask" type="Integer" value="4"/> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.project.IProjectConfigurationManager"/> | ||
<provide interface="org.eclipse.m2e.core.project.IMavenProjectChangedListener"/> | ||
<provide interface="org.eclipse.core.resources.IResourceChangeListener"/> | ||
</service> | ||
<reference cardinality="1..1" field="maven" interface="org.eclipse.m2e.core.embedder.IMaven" name="maven"/> | ||
<reference cardinality="1..1" field="mavenConfiguration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="mavenConfiguration"/> | ||
<reference cardinality="1..1" field="mavenMarkerManager" interface="org.eclipse.m2e.core.internal.markers.IMavenMarkerManager" name="mavenMarkerManager"/> | ||
<reference cardinality="1..1" field="mavenModelManager" interface="org.eclipse.m2e.core.embedder.MavenModelManager" name="mavenModelManager"/> | ||
<reference cardinality="1..1" field="projectManager" interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager" name="projectManager"/> | ||
<implementation class="org.eclipse.m2e.core.internal.project.ProjectConfigurationManager"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...ore/OSGI-INF/org.eclipse.m2e.core.internal.project.WorkspaceClassifierResolverManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.eclipse.m2e.core.internal.project.WorkspaceClassifierResolverManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.project.IWorkspaceClassifierResolverManager"/> | ||
</service> | ||
<implementation class="org.eclipse.m2e.core.internal.project.WorkspaceClassifierResolverManager"/> | ||
</scr:component> |
9 changes: 9 additions & 0 deletions
9
org.eclipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.project.WorkspaceStateWriter.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" name="org.eclipse.m2e.core.internal.project.WorkspaceStateWriter"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.project.IMavenProjectChangedListener"/> | ||
</service> | ||
<reference cardinality="1..1" field="projectManager" interface="org.eclipse.m2e.core.internal.project.registry.MavenProjectManager" name="projectManager"/> | ||
<reference cardinality="1..1" field="workspace" interface="org.eclipse.core.resources.IWorkspace" name="workspace"/> | ||
<implementation class="org.eclipse.m2e.core.internal.project.WorkspaceStateWriter"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...re/OSGI-INF/org.eclipse.m2e.core.internal.project.conversion.ProjectConversionManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.eclipse.m2e.core.internal.project.conversion.ProjectConversionManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.project.conversion.IProjectConversionManager"/> | ||
</service> | ||
<implementation class="org.eclipse.m2e.core.internal.project.conversion.ProjectConversionManager"/> | ||
</scr:component> |
12 changes: 12 additions & 0 deletions
12
....m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" activate="init" name="org.eclipse.m2e.core.internal.project.registry.MavenProjectManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.project.IMavenProjectRegistry"/> | ||
</service> | ||
<reference bind="addMavenProjectChangedListener" cardinality="0..n" interface="org.eclipse.m2e.core.project.IMavenProjectChangedListener" name="MavenProjectChangedListener" policy="dynamic" unbind="removeMavenProjectChangedListener"/> | ||
<reference cardinality="1..1" field="configuration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="configuration"/> | ||
<reference cardinality="1..1" field="manager" interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager" name="manager"/> | ||
<reference cardinality="1..1" field="mavenBackgroundJob" interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob" name="mavenBackgroundJob"/> | ||
<reference cardinality="1..1" field="workspace" interface="org.eclipse.core.resources.IWorkspace" name="workspace"/> | ||
<implementation class="org.eclipse.m2e.core.internal.project.registry.MavenProjectManager"/> | ||
</scr:component> |
13 changes: 13 additions & 0 deletions
13
...e.core/OSGI-INF/org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" activate="init" name="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager"/> | ||
</service> | ||
<reference bind="addMavenProjectChangedListener" cardinality="0..n" interface="org.eclipse.m2e.core.project.IMavenProjectChangedListener" name="MavenProjectChangedListener" policy="dynamic" unbind="removeMavenProjectChangedListener"/> | ||
<reference bind="setWorkspace" cardinality="0..1" interface="org.eclipse.core.resources.IWorkspace" name="Workspace" policy="dynamic" unbind="unsetWorkspace"/> | ||
<reference cardinality="1..1" field="configuration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="configuration"/> | ||
<reference cardinality="1..1" field="markerManager" interface="org.eclipse.m2e.core.internal.markers.IMavenMarkerManager" name="markerManager"/> | ||
<reference cardinality="1..1" field="maven" interface="org.eclipse.m2e.core.embedder.IMaven" name="maven"/> | ||
<reference cardinality="1..1" field="stateReader" interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryReader" name="stateReader"/> | ||
<implementation class="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
...2e.core/OSGI-INF/org.eclipse.m2e.core.internal.project.registry.ProjectRegistryReader.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="init" name="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryReader"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryReader"/> | ||
</service> | ||
<implementation class="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryReader"/> | ||
</scr:component> |
11 changes: 11 additions & 0 deletions
11
...ore/OSGI-INF/org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" deactivate="shutdown" name="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob"> | ||
<property name="event.mask" type="Integer" value="7"/> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob"/> | ||
<provide interface="org.eclipse.core.resources.IResourceChangeListener"/> | ||
</service> | ||
<reference cardinality="1..1" field="manager" interface="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager" name="manager"/> | ||
<reference cardinality="1..1" field="mavenConfiguration" interface="org.eclipse.m2e.core.embedder.IMavenConfiguration" name="mavenConfiguration"/> | ||
<implementation class="org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob"/> | ||
</scr:component> |
11 changes: 11 additions & 0 deletions
11
...eclipse.m2e.core/OSGI-INF/org.eclipse.m2e.core.internal.repository.RepositoryRegistry.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" activate="updateRegistry" name="org.eclipse.m2e.core.internal.repository.RepositoryRegistry"> | ||
<service> | ||
<provide interface="org.eclipse.m2e.core.repository.IRepositoryRegistry"/> | ||
<provide interface="org.eclipse.m2e.core.project.IMavenProjectChangedListener"/> | ||
<provide interface="org.eclipse.m2e.core.embedder.ISettingsChangeListener"/> | ||
</service> | ||
<reference cardinality="1..1" field="maven" interface="org.eclipse.m2e.core.embedder.IMaven" name="maven"/> | ||
<reference cardinality="1..1" field="projectManager" interface="org.eclipse.m2e.core.project.IMavenProjectRegistry" name="projectManager"/> | ||
<implementation class="org.eclipse.m2e.core.internal.repository.RepositoryRegistry"/> | ||
</scr:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.