Skip to content

Instantly share code, notes, and snippets.

@dilnei
Created February 19, 2016 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilnei/83e6cec3dd9d916ca21b to your computer and use it in GitHub Desktop.
Save dilnei/83e6cec3dd9d916ca21b to your computer and use it in GitHub Desktop.
Diz que os repositorios são dependentes do CDI
package br.com.beamasset.model.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.enterprise.context.Dependent;
import javax.enterprise.inject.Stereotype;
/**
* Define that repositorys are dependents of the CDI.
*
* @author Dilnei_Cunha
*/
@Dependent
@Stereotype
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Repository {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment