Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- class MyBeanConfiguration extends DisposableBean {
- private MyBean myBean; // Correct?
- @Bean
- public MyBean myBean() {
- return (this.myBean = MyBeanFactory.newMyBean());
- }
- @Override
- public void destroy() throws Exception {
- doSomethingWith(myBean);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement