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"`
|
2019-11-11 13:52:10 +00:00
|
|
|
Name string `:"name"`
|
2018-04-03 09:02:31 +00:00
|
|
|
}
|