Support more lifecycle method
Merge pull request #6 from slovx2/interface

Support more lifecycle method