Java Code Examples for org.springframework.beans.factory.access.BeanFactoryReference#release()
The following examples show how to use
org.springframework.beans.factory.access.BeanFactoryReference#release() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringBeanAutowiringInterceptor.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Actually release the BeanFactoryReference for the given target bean. * @param target the target bean to release */ protected void doReleaseBean(Object target) { BeanFactoryReference ref = this.beanFactoryReferences.remove(target); if (ref != null) { ref.release(); } }
Example 2
Source File: SpringBeanAutowiringInterceptor.java From spring4-understanding with Apache License 2.0 | 5 votes |
/** * Actually release the BeanFactoryReference for the given target bean. * @param target the target bean to release */ protected void doReleaseBean(Object target) { BeanFactoryReference ref = this.beanFactoryReferences.remove(target); if (ref != null) { ref.release(); } }