di-go/injection/annotation/resource.go

19 lines
358 B
Go
Raw Normal View History

2018-04-03 09:02:31 +00:00
package annotation
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
2018-04-06 16:57:25 +00:00
var ResourceAnnotationType = reflect.TypeOf((*ResourceAnnotation)(nil))
2018-04-03 09:02:31 +00:00
func init() {
2018-04-06 16:57:25 +00:00
cda.RegisterAnnotation(ResourceAnnotationType)
2018-04-03 09:02:31 +00:00
}
2018-04-06 16:57:25 +00:00
type ResourceAnnotation struct {
cda.TypeAnnotation `@annotation:"@Resource"`
Name string `@annotation:"name"`
2018-04-03 09:02:31 +00:00
}