Code Snippet

Just another Code Snippet site

[Spring] Call method before context destruction

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
	<bean id="customerService" class="com.mkyong.customer.services.CustomerService" 
		init-method="initIt" destroy-method="cleanUp"> 
		<property name="message" value="i'm property message" />
	</bean>
 
</beans>


Comments are currently closed.