forked from mapstruct/tools-gem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGemDefinition.java
More file actions
28 lines (25 loc) · 793 Bytes
/
GemDefinition.java
File metadata and controls
28 lines (25 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at https://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.tools.gem;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Sjaak Derksen
*
* Defining a GemDefinion will generate a Gem representing the annotation in the {@link GemDefinition#value()}
*/
@Repeatable(GemDefinitions.class)
@Retention(RetentionPolicy.SOURCE)
@Target({ ElementType.PACKAGE, ElementType.TYPE })
public @interface GemDefinition {
/**
* @return the annotation for which a Gem should be generated
*/
Class<?> value();
}