All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osgi.annotation.versioning.ConsumerType Maven / Gradle / Ivy

Go to download

AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based @AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step. This library is a superset of AspectJ weaver and hence also of AspectJ runtime.

There is a newer version: 1.9.22.1
Show newest version
/*******************************************************************************
 * 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.annotation.versioning;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * A type implemented by, or extended by, the Consumer Role.
 * 

* A non-binary-compatible change to a consumer type or a binary-compatible * change to a consumer type affecting an abstract method normally requires * incrementing the major version of the type's package. This change will * require all providers and all consumers to be updated to handle the change * since consumers that implement or extend the consumer type and all providers * must understand the change in the consumer type. *

* A binary-compatible change to a consumer type not affecting an abstract * method normally requires incrementing the minor version of the type's * package. This change will require all providers to be updated to handle the * change, but consumers will not require changes since no abstract methods * requiring implementation by the consumer are affected. *

* A type can be marked {@link ConsumerType} or {@link ProviderType} but not * both. A type is assumed to be {@link ConsumerType} if it is not marked either * {@link ConsumerType} or {@link ProviderType}. *

* A package can be marked {@link ProviderType}. In this case, all types in the * package are considered to be a provider type regardless of whether they are * marked {@link ConsumerType} or {@link ProviderType}. *

* This annotation is not retained at runtime. It is for use by tools to * understand the semantic version of a package. When a bundle implements a * consumer type from an imported package, then the bundle's import range for * that package must require the exact major version and a minor version greater * than or equal to the package's version. * * @see * Semantic Versioning * @author $Id: 007d63295bff57b4d091d65a3b676a9a596b112b $ */ @Documented @Retention(RetentionPolicy.CLASS) @Target(ElementType.TYPE) public @interface ConsumerType { // marker annotation }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy