cz.cuni.amis.pogamut.ut2004.factory.guice.remoteagent
Class UT2004ServerFactory<SERVER extends IUT2004Server,PARAMS extends UT2004AgentParameters>

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
      extended by cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentFactory<SERVER,PARAMS>
          extended by cz.cuni.amis.pogamut.ut2004.factory.guice.remoteagent.UT2004ServerFactory<SERVER,PARAMS>
Type Parameters:
BOT -
PARAMS -
All Implemented Interfaces:
IAgentFactory<SERVER,PARAMS>

public class UT2004ServerFactory<SERVER extends IUT2004Server,PARAMS extends UT2004AgentParameters>
extends GuiceAgentFactory<SERVER,PARAMS>

Guice-base IUT2004Server factory. It needs UT2004ServerModule to work correctly and the module is required to bound IAgent to the IUT2004Server, otherwise the method UT2004ServerFactory#newAgent(IRemoteAgentParameters) will throw ClassCastException.

For more info about the factory, see GuiceAgentFactory.


Constructor Summary
UT2004ServerFactory(UT2004ServerModule agentModule)
           
 
Method Summary
protected  UT2004ServerModule getAgentModule()
          Returns the module that the factory is working with.
 
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.GuiceAgentFactory
configureModule, newAgent
 
Methods inherited from class cz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
getInjector, setAgentModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UT2004ServerFactory

public UT2004ServerFactory(UT2004ServerModule agentModule)
Method Detail

getAgentModule

protected UT2004ServerModule getAgentModule()
Description copied from class: AbstractGuiceAgentFactory
Returns the module that the factory is working with. Can be utilized to slip run-time dependencies into the module.

Overrides:
getAgentModule in class AbstractGuiceAgentFactory
Returns:
factory module