View Javadoc

1   package cz.cuni.amis.pogamut.base.component;
2   
3   import cz.cuni.amis.pogamut.base.component.bus.IComponentBus;
4   import cz.cuni.amis.pogamut.base.utils.guice.AgentScoped;
5   
6   public interface IComponentAware {
7   
8   	/**
9   	 * {@link IComponentBus} that the instance is working with.
10  	 * <p><p>
11  	 * Note that by design-choice - the {@link IComponentBus} is a singleton inside {@link AgentScoped},
12  	 * therefore you don't have to necessarily obtain the instance through the component, it suffice
13  	 * to obtain it using injection into your object.
14  	 * 
15  	 * @return
16  	 */
17  	public IComponentBus getEventBus();
18  	
19  }