/************************************************* * * = PACKAGE * ACE.Connection * * = FILENAME * ActivateStrategy.java * *@author Prashant Jain * *************************************************/ package ACE.Connection; /** *
*

SYNOPSIS

* Bridge supporting activation strategy used by * StrategyAcceptor * *

DESCRIPTION

* Subclass and overload * activateSvcHandler * in order change the activation strategy. Then, submit this subclass to * StrategyAcceptor * 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; } }