KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xfire > ScopePolicy


1 package jfun.yan.xfire;
2
3 import jfun.yan.factory.Factory;
4
5 import org.codehaus.xfire.MessageContext;
6
7
8 /**
9  * This interface represents a scoping policy that caches servant instances
10  * created by a Factory.
11  * <p>
12  * @author Ben Yu
13  * Feb 6, 2006 12:47:38 PM
14  */

15 public interface ScopePolicy {
16   /**
17    * Apply scope policy to a Factory object so that the instance
18    * created by the Factory object can be cached properly.
19    * @param f the Factory object.
20    * @param ctxt the MessageContext object.
21    * @return the Factory object that honors the scope.
22    */

23   Factory applyScope(Factory f, MessageContext ctxt);
24 }
25
Popular Tags