MCPcopy
hub / github.com/eyebluecn/tank / Bean

Interface Bean

code/core/bean.go:6–15  ·  view source on GitHub ↗

** * bean interface means singleton in application */

Source from the content-addressed store, hash-verified

4 * bean interface means singleton in application
5 */
6type Bean interface {
7 //init the bean when constructing
8 Init()
9 //cleanup the bean when system's cleanup
10 Cleanup()
11 //when everything(including db's connection) loaded, this method will be invoked.
12 Bootstrap()
13 //shortcut for panic check.
14 PanicError(err error)
15}

Callers 19

InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
SystemCleanupMethod · 0.65
CleanupMethod · 0.65
InstallOkMethod · 0.65
CreateMethod · 0.65

Implementers 1

BaseBeancode/rest/base_bean.go

Calls

no outgoing calls

Tested by

no test coverage detected