cz.cuni.amis.pogamut.base.utils.guice
Class AgentTeamScope

Package class diagram package AgentTeamScope
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.utils.guice.AgentTeamScope
All Implemented Interfaces:
com.google.inject.Scope, IAgentScope

public class AgentTeamScope
extends Object
implements IAgentScope

Scope used during the construction of the whole team of agents - treating all new instances (of classes annotated with AgentTeamScoped) as singletons for the purpose of construction of the team of agents.

Not all pogamut.base class is AgentTeamScoped.

Author:
Jimmy

Nested Class Summary
static class AgentTeamScope.SingletonProvider<T>
           
 
Constructor Summary
AgentTeamScope()
           
 
Method Summary
 void clearScope()
          Release all AgentScoped objects that the scope is holding.
<T> com.google.inject.Provider
scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> creator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.inject.Scope
toString
 

Constructor Detail

AgentTeamScope

public AgentTeamScope()
Method Detail

scope

public <T> com.google.inject.Provider scope(com.google.inject.Key<T> key,
                                            com.google.inject.Provider<T> creator)
Specified by:
scope in interface com.google.inject.Scope

clearScope

public void clearScope()
Description copied from interface: IAgentScope
Release all AgentScoped objects that the scope is holding.

Specified by:
clearScope in interface IAgentScope


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.