Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.container.activity » [javadoc | source]
org.apache.webbeans.container.activity
public class: ActivityManager [javadoc | source]
java.lang.Object
   org.apache.webbeans.container.activity.ActivityManager
Class is responsible for managing the activities.

There is always one root activity.

Constructor:
 public ActivityManager() 
Method from org.apache.webbeans.container.activity.ActivityManager Summary:
addCurrentActivity,   getCurrentActivity,   getInstance,   getRootActivity,   setRootActivity
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.webbeans.container.activity.ActivityManager Detail:
 public  void addCurrentActivity(Context context,
    BeanManagerImpl currentManager) 
    Add new current activity for the context.
 public BeanManagerImpl getCurrentActivity() 
    Looks for the registered current activities.
    • If there are more than one activity, throws exception.
    • If no registered current activity, return the root activity.
 public static ActivityManager getInstance() 
    Gets the activity manager.
 public BeanManagerImpl getRootActivity() 
    Gets root activity
 public synchronized  void setRootActivity(BeanManagerImpl rootActivity) 
    Sets the root activity