Package jfun.yan.factory

Examples of jfun.yan.factory.PooledFactory


   */
  protected Object getServiceKey(Service service){
    return "service." + service.getSimpleName();
  }
  public Factory applyScope(Factory f, MessageContext ctxt) {
    return new PooledFactory(f,
        getSessionScope(getServiceKey(ctxt.getService()), ctxt.getSession()));
  }
View Full Code Here


* @author Ben Yu
* Feb 6, 2006 11:38:08 AM
*/
public class ApplicationScopePolicy implements ScopePolicy {
  public Factory applyScope(Factory f, MessageContext ctxt) {
    return new PooledFactory(f, pool);
  }
View Full Code Here

TOP

Related Classes of jfun.yan.factory.PooledFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.