Initial commit for "Spring Custom Annotation with Dynamic Qualifier"

article.
This commit is contained in:
xsalefter
2015-10-21 00:50:44 +07:00
parent 6aec841b73
commit 32ea1e0a1e
10 changed files with 394 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package org.baeldung.customannotation;
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;
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD })
@Documented
public @interface DataAccess {
Class<?>entity();
}