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

aQute.bnd.annotation.jpms.MainClass Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package aQute.bnd.annotation.jpms;

import static aQute.bnd.annotation.jpms.Constants.CLASS_MACRO;
import static aQute.bnd.annotation.jpms.Constants.MAIN_CLASS;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;

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

import org.osgi.annotation.bundle.Header;

/**
 * Annotation used on a type to indicate that it is the {@code Main-Class} of
 * the application resulting in the manifest header. This information is added
 * to the {@code module-info.class}.
 */
@Documented
@Retention(CLASS)
@Target(TYPE)
@Header(name = MAIN_CLASS, value = CLASS_MACRO)
public @interface MainClass {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy