This commit is contained in:
병준 박 2019-11-13 23:08:33 +09:00
parent 1ab0bb37bf
commit 9508895ed0

View File

@ -9,9 +9,15 @@ import (
) )
func init() { func init() {
annotation.Register(ComponentAnnotationType) if err := annotation.Register(ComponentAnnotationType); nil != err {
annotation.Register(InjectAnnotationType) panic(err)
annotation.Register(ResourceAnnotationType) }
if err := annotation.Register(InjectAnnotationType); nil != err {
panic(err)
}
if err := annotation.Register(ResourceAnnotationType); nil != err {
panic(err)
}
} }
var ComponentAnnotationType = reflect.TypeOf((*ComponentAnnotation)(nil)) var ComponentAnnotationType = reflect.TypeOf((*ComponentAnnotation)(nil))