summaryrefslogtreecommitdiff
path: root/java/src/ActivateStrategy.java
blob: 882203ad552e769ac87b40a7ad406c253c80a272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*************************************************
 *
 * = PACKAGE
 *    JACE.Connection
 *
 * = FILENAME
 *    ActivateStrategy.java
 *
 *@author Prashant Jain
 *
 *************************************************/
package JACE.Connection;


/**
 * <hr>
 *<h2>SYNOPSIS</h2>
 * Bridge supporting activation strategy used by
 * <a href="ACE.Connection.StrategyAcceptor.html#_top_"><tt>StrategyAcceptor</tt></a>
 *
 *<h2>DESCRIPTION</h2>
 * Subclass and overload
 * <a href="#activateSvcHandler(ACE.Connection.SvcHandler)"><tt>activateSvcHandler</tt></a>
 * in order change the activation strategy.  Then, submit this subclass to 
 * <a href="ACE.Connection.StrategyAcceptor.html#_top_"><tt>StrategyAcceptor</tt></a>
 * as the activation strategy.
 *
 *@see StrategyAcceptor
 */
public class ActivateStrategy
{
  /**
   * Activate the Svc Handler. Note that subclasses should overwrite
   * this method to provide a different Activate strategy.
   *@param sh Svc Handler to activate
   *@return zero if success, non-zero for failure
   */
  public int activateSvcHandler (SvcHandler sh)
    {
      sh.open (null);
      return 0;
    }
}