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

org.infinispan.factories.annotations.InfinispanModule Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.factories.annotations;

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

/**
 * Mechanism for specifying the name and dependencies of Infinispan modules.
 * 

* There must be exactly one {@code InfinispanModule} annotation in each module, placed on an implementation of the * {@code org.infinispan.lifecycle.ModuleLifecycle} interface. * *

It would have been nice to put the annotation on a package, * but package-info.java source files are excluded from compilation * because of MCOMPILER-205.

* * @author Dan Berindei * @since 10.0 */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.CLASS) public @interface InfinispanModule { /** * The unique name of the module. */ String name(); /** * The set of required dependencies (module names). */ String[] requiredModules() default {}; /** * The set of optional dependencies (module names). */ String[] optionalModules() default {}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy