-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[featurelauncher] Updates to the specification based on implementatio…
…n experience * Separate Artifact Repository constants into their own file and remove REMOTE from the constant names * InstalledFeature should allow users to see what the result of decoration was * Clarify the ordering of ArtifactRepositories that are added to FeatureRuntime operations Signed-off-by: Tim Ward <[email protected]>
- Loading branch information
1 parent
ad6256d
commit bc20dc1
Showing
5 changed files
with
159 additions
and
86 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
97 changes: 97 additions & 0 deletions
97
...launcher/src/org/osgi/service/featurelauncher/repository/ArtifactRepositoryConstants.java
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,97 @@ | ||
/******************************************************************************* | ||
* Copyright (c) Contributors to the Eclipse Foundation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*******************************************************************************/ | ||
|
||
package org.osgi.service.featurelauncher.repository; | ||
|
||
import java.net.URI; | ||
import java.util.Map; | ||
|
||
/** | ||
* Defines standard constants for creating {@link ArtifactRepository} instances | ||
* using the {@link ArtifactRepositoryFactory} | ||
* | ||
* @author $Id$ | ||
*/ | ||
public final class ArtifactRepositoryConstants { | ||
private ArtifactRepositoryConstants() { | ||
// non-instantiable | ||
} | ||
|
||
/** | ||
* The configuration property key used to set the repository name when | ||
* creating an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_NAME = "name"; | ||
|
||
/** | ||
* The configuration property key used to set the repository user when | ||
* creating an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_USER = "user"; | ||
|
||
/** | ||
* The configuration property key used to set the repository password when | ||
* creating an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_PASSWORD = "password"; | ||
|
||
/** | ||
* The configuration property key used to set the bearer token when creating | ||
* an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_BEARER_TOKEN = "token"; | ||
|
||
/** | ||
* The configuration property key used to set that SNAPSHOT release versions | ||
* are enabled for an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_SNAPSHOTS_ENABLED = "snapshot"; | ||
|
||
/** | ||
* The configuration property key used to set that release versions are | ||
* enabled for an {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_RELEASES_ENABLED = "release"; | ||
|
||
/** | ||
* The configuration property key used to set the trust store to be used | ||
* when accessing a remote {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_TRUST_STORE = "truststore"; | ||
|
||
/** | ||
* The configuration property key used to set the trust store format to be | ||
* used when accessing a remote {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_TRUST_STORE_FORMAT = "truststoreFormat"; | ||
|
||
/** | ||
* The configuration property key used to set the trust store password to be | ||
* used when accessing a remote {@link ArtifactRepository} using | ||
* {@link ArtifactRepositoryFactory#createRepository(URI, Map)} | ||
*/ | ||
public static final String ARTIFACT_REPOSITORY_TRUST_STORE_PASSWORD = "truststorePassword"; | ||
} |
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
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