diff --git a/annotation/PreDestroy.go b/annotation/PreDestroy.go new file mode 100644 index 0000000..a6d81ed --- /dev/null +++ b/annotation/PreDestroy.go @@ -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"` +}