Custom- onCreate onDestroy

Custom- onCreate onDestroy

<beans default-init-method="myInit" default-destroy-method="cleanUp">
<bean id="triangle" class="org.tamer1an.test1.Triangle"
init-method="myInit" destroy-method="cleanUp">

</bean>
</beans>