@author Ben Yu Feb 2, 2006 11:57:12 AM
47484950515253
return service.getName(); } public Factory applyScope(Factory f, Exchange ex) { Service s = ex.get(Service.class); return new PooledFactory(f, getSessionScope(getServiceKey(s), ex.getSession())); }
34353637383940
public class ApplicationScopePolicy implements ScopePolicy { private final Pool pool = new CachingPool(); public Factory applyScope(Factory f, Exchange ex) { return new PooledFactory(f, pool); }