cz.cuni.amis.pogamut.base.component.controller
Class SharedComponentController.LocalController

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.component.controller.SharedComponentController.LocalController
Enclosing class:
SharedComponentController<COMPONENT extends ISharedComponent>

protected class SharedComponentController.LocalController
extends java.lang.Object

Used as IComponentControlHelper that is passed to every ILifecycleBus.addLifecycleManagement(IComponent, IComponentControlHelper, ComponentDependencies) sensing decisions of ordinary ComponentController that signalizes when the component should be started for a given bus.

All lifecycle methods are just recalling SharedComponentControl signalizeXXX() methods where we truly decide whether the component should start/stop, etc.


Field Summary
protected  IComponentController controller
           
protected  SharedComponentController.ComponentStateListener listener
           
 
Constructor Summary
SharedComponentController.LocalController(IAgentId agentId, IComponentController controller)
           
 
Method Summary
 void destroy()
           
 IAgentId getAgentId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected SharedComponentController.ComponentStateListener listener

controller

protected IComponentController controller
Constructor Detail

SharedComponentController.LocalController

public SharedComponentController.LocalController(IAgentId agentId,
                                                 IComponentController controller)
Method Detail

getAgentId

public IAgentId getAgentId()

destroy

public void destroy()