Here is an XML config sample:
<bean id="exampleInitBean" class="examples.ExampleBean"
destroy-method="cleanup"/>
Is there any java-based annotation that does the exact same thing as the "destroy-method" bean attribute?
For example:
@Configuration
public class SimpleConfig
{
@Bean
@???????????
public ExampleBean exampleBean()
{
return new ExampleBean();
}
}
Thanks.


