add support for PostConstruct and PreDestroy callback, and test-apps/postConstruct.