-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a component property type for Agentservice name
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...les/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/p2/core/spi/AgentServicename.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,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2025 Christoph Läubrich and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Christoph Läubrich - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.equinox.p2.core.spi; | ||
|
||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.CLASS; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
import org.osgi.service.component.annotations.ComponentPropertyType; | ||
|
||
/** | ||
* This component property type can be used to annotate a declarative service | ||
* component that provides an {@link IAgentServiceFactory} to provides the | ||
* required {@link IAgentServiceFactory#PROP_CREATED_SERVICE_NAME}. | ||
* | ||
* @since 2.13 | ||
*/ | ||
@Retention(CLASS) | ||
@Target(TYPE) | ||
@ComponentPropertyType | ||
public @interface AgentServicename { | ||
|
||
public static final String PREFIX_ = "p2."; //$NON-NLS-1$ | ||
|
||
Class<?> value(); | ||
|
||
} |