1 16 17 package org.springframework.aop.target; 18 19 import org.springframework.beans.BeansException; 20 21 32 public class PrototypeTargetSource extends AbstractPrototypeBasedTargetSource { 33 34 38 public Object getTarget() throws BeansException { 39 return newPrototypeInstance(); 40 } 41 42 46 public void releaseTarget(Object target) { 47 destroyPrototypeInstance(target); 48 } 49 50 public String toString() { 51 return "PrototypeTargetSource for target bean with name '" + getTargetBeanName() + "'"; 52 } 53 54 } 55 | Popular Tags |