Java 类javax.annotation.sql.DataSourceDefinitions 实例源码

项目:hammock    文件:DataSourceExtension.java   
public void findDataSourceDefinitions(@Observes @WithAnnotations(DataSourceDefinitions.class) ProcessAnnotatedType<?> pat) {
    DataSourceDefinitions annotation = pat.getAnnotatedType().getJavaClass().getAnnotation(DataSourceDefinitions.class);
    dataSourceDefinitions.addAll(asList(annotation.value()));
}