org.backsource.amsterdam.service.protocol
Class ProtocolHandlerFactorySupport

java.lang.Object
  extended byorg.backsource.amsterdam.service.protocol.ProtocolHandlerFactorySupport
All Implemented Interfaces:
ProtocolHandlerFactory, Servable
Direct Known Subclasses:
SimpleDirProtocolHandlerFactory

public abstract class ProtocolHandlerFactorySupport
extends java.lang.Object
implements ProtocolHandlerFactory

Support imlementation to be used by subclasses.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
protected  ServiceInvoker invoker
           
 
Constructor Summary
ProtocolHandlerFactorySupport()
           
 
Method Summary
 void destroy()
           
abstract  ProtocolHandler getProtocolHandler()
           
 ServiceInvoker getServiceInvoker()
           
abstract  java.lang.String getSupportedProtocol()
           
 void init()
           
abstract  void initialize(ProtocolConfigure config)
           
 void setServiceInvoker(ServiceInvoker invoker)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invoker

protected ServiceInvoker invoker
Constructor Detail

ProtocolHandlerFactorySupport

public ProtocolHandlerFactorySupport()
Method Detail

setServiceInvoker

public void setServiceInvoker(ServiceInvoker invoker)
Specified by:
setServiceInvoker in interface ProtocolHandlerFactory

getServiceInvoker

public ServiceInvoker getServiceInvoker()
Specified by:
getServiceInvoker in interface ProtocolHandlerFactory

getSupportedProtocol

public abstract java.lang.String getSupportedProtocol()
Specified by:
getSupportedProtocol in interface ProtocolHandlerFactory

initialize

public abstract void initialize(ProtocolConfigure config)
Specified by:
initialize in interface ProtocolHandlerFactory

getProtocolHandler

public abstract ProtocolHandler getProtocolHandler()
                                            throws ServiceException
Specified by:
getProtocolHandler in interface ProtocolHandlerFactory
Throws:
ServiceException

init

public void init()
          throws java.lang.Exception
Specified by:
init in interface Servable
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Servable
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Servable
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface Servable
Throws:
java.lang.Exception


Copyright © 2001-2004 Backsource. All Rights Reserved.