Basic examples on cdi and beans validation

This commit is contained in:
2015-04-30 01:33:05 +02:00
commit 23bf95316c
31 changed files with 878 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package test1_cdi;
/**
* Created by Giovanni on 26/04/2015.
*/
import javax.enterprise.inject.Alternative;
@Alternative @StudentI(implementation = student_implementations.one)
public class StudentAlternative implements Student {
@Override
public String getinfo() {
return "i'm an alternative";
}
}