tamago.ext.tamagocc
Class TamagoCCContainerImpl

java.lang.Object
  extended by tamago.ext.tamagocc.TamagoCCContainerImpl
All Implemented Interfaces:
RequireServiceNaming, TamagoCCComponent, TamagoCCContainer, TamagoCCEntity

public abstract class TamagoCCContainerImpl
extends java.lang.Object
implements TamagoCCContainer

Author:
Hakim Belhaouari and Frederic Peschanski

Field Summary
protected  TamagoCCState current
           
protected  java.util.Hashtable<java.lang.String,TamagoCCMethodID> hash
           
protected  java.util.ArrayList<TamagoCCState> states
           
 
Constructor Summary
TamagoCCContainerImpl()
           
 
Method Summary
protected  void allow(TamagoCCState state, TamagoCCMethodID mid)
           
 boolean canCallMethod(TamagoCCMethodID mid)
           
protected  void fetchServiceBehavior(TamagoCCMethodID mid)
           
 RequiredService getRequiredService(java.lang.String name, java.lang.String module)
           
protected  void include(TamagoCCState state, java.lang.String name)
           
 TamagoCCMethodID methodID(java.lang.String mid)
           
protected  TamagoCCState newstate()
           
protected  void registerID(java.lang.String a, java.lang.String b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tamago.ext.tamagocc.TamagoCCContainer
bind, getRequiredServices, isBinded, tamago_hotswapping
 
Methods inherited from interface tamago.ext.tamagocc.TamagoCCComponent
core_set_properties
 

Field Detail

states

protected java.util.ArrayList<TamagoCCState> states

hash

protected java.util.Hashtable<java.lang.String,TamagoCCMethodID> hash

current

protected TamagoCCState current
Constructor Detail

TamagoCCContainerImpl

public TamagoCCContainerImpl()
Method Detail

canCallMethod

public boolean canCallMethod(TamagoCCMethodID mid)

methodID

public TamagoCCMethodID methodID(java.lang.String mid)

newstate

protected TamagoCCState newstate()

include

protected void include(TamagoCCState state,
                       java.lang.String name)

allow

protected void allow(TamagoCCState state,
                     TamagoCCMethodID mid)

registerID

protected void registerID(java.lang.String a,
                          java.lang.String b)

fetchServiceBehavior

protected void fetchServiceBehavior(TamagoCCMethodID mid)
                             throws TamagoCCServiceBehaviorException
Throws:
TamagoCCServiceBehaviorException

getRequiredService

public RequiredService getRequiredService(java.lang.String name,
                                          java.lang.String module)
                                   throws TamagoException
Specified by:
getRequiredService in interface TamagoCCContainer
Throws:
TamagoException
See Also:
TamagoCCContainer.getRequiredService(java.lang.String, java.lang.String)