1 package jfun.yan.spring; 2 3 import jfun.yan.Component; 4 import jfun.yan.DelegatingComponent; 5 import jfun.yan.factory.Pool; 6 7 class NonSingletonComponent extends DelegatingComponent { 8 protected NonSingletonComponent(Component cc) { 9 super(cc); 10 } 11 public Component singleton(){ 12 return this; 13 } 14 public Component singleton(Pool scope){ 15 return this; 16 } 17 } 18 | Popular Tags |