PreDestroy added
This commit is contained in:
parent
d72db42216
commit
73771c29dd
19
annotation/PreDestroy.go
Normal file
19
annotation/PreDestroy.go
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
package annotation
|
||||||
|
|
||||||
|
// @Inject(name? string)
|
||||||
|
|
||||||
|
import (
|
||||||
|
"reflect"
|
||||||
|
|
||||||
|
oa "git.loafle.net/overflow/annotation-go"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
oa.Register(PreDestroyAnnotationType)
|
||||||
|
}
|
||||||
|
|
||||||
|
var PreDestroyAnnotationType = reflect.TypeOf((*PreDestroyAnnotation)(nil))
|
||||||
|
|
||||||
|
type PreDestroyAnnotation struct {
|
||||||
|
oa.Annotation `@name:"@PreDestroy"`
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user