|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.factory.guice.AbstractGuiceAgentFactory
public abstract class AbstractGuiceAgentFactory
Abstract Guice-based factory that uses GuiceAgentModule for the bindings.
It simply wraps the Guice's Injector, which it creates based on the passed module.
The module can be reset using setAgentModule(GuiceAgentModule).
| Constructor Summary | |
|---|---|
AbstractGuiceAgentFactory()
Parameter-less constructor that can be utilized in situations when you have to set the GuiceAgentModule
later. |
|
AbstractGuiceAgentFactory(GuiceAgentModule module)
Creates a Guice-based factory that will use Injector created using the 'module'. |
|
| Method Summary | |
|---|---|
protected GuiceAgentModule |
getAgentModule()
Returns the module that the factory is working with. |
protected com.google.inject.Injector |
getInjector()
Injector that should be used to instantiates new objects according to the module. |
protected void |
setAgentModule(GuiceAgentModule module)
Sets new agent module into the factory, it invalidates the injector
so the new one is created when getInjector() is called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractGuiceAgentFactory()
GuiceAgentModule
later. (DO NOT FORGET TO DO IT VIA setAgentModule(GuiceAgentModule) :-)
public AbstractGuiceAgentFactory(GuiceAgentModule module)
Injector created using the 'module'.
module - module that configures bindings between classes, may be null (specify module later using setAgentModule(GuiceAgentModule))| Method Detail |
|---|
protected GuiceAgentModule getAgentModule()
protected void setAgentModule(GuiceAgentModule module)
injector
so the new one is created when getInjector() is called.
module - new moduleprotected com.google.inject.Injector getInjector()
Lazy-initialized using getAgentModule().
getAgentModule()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||