?? applicationscopepolicy.java
字號:
package org.codehaus.xfire.service.invoker;
import org.codehaus.xfire.MessageContext;
import org.codehaus.xfire.util.factory.Factory;
import org.codehaus.xfire.util.factory.Pool;
import org.codehaus.xfire.util.factory.PooledFactory;
import org.codehaus.xfire.util.factory.SingletonPool;
/**
* This scope policy implements one servant instance per service.
* <p>
*
* @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);
}
public String toString()
{
return "application scope";
}
private final Pool pool = new SingletonPool();
public static ScopePolicy instance()
{
return new ApplicationScopePolicy();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -