Spring Framework ThreadLocalTargetSource - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ThreadLocalTargetSource class.

This code example shows how to use the following methods:
			CommonsPoolTargetSource cpts = new CommonsPoolTargetSource();
			cpts.setMaxSize(25);
			return cpts;
		} 
		else if (beanName.startsWith(PREFIX_THREAD_LOCAL)) {
			return new ThreadLocalTargetSource();
		} 
		else if (beanName.startsWith(PREFIX_PROTOTYPE)) {
			return new PrototypeTargetSource();
		} 
		else { 
			// No match. Don't create a custom target source. 
			return null; 
		} 
	} 
 
} 
6
CodeRank