org.granite.client.tide.impl
Class DefaultViewScope

java.lang.Object
  extended by org.granite.client.tide.impl.DefaultViewScope
All Implemented Interfaces:
ViewScope

public class DefaultViewScope
extends Object
implements ViewScope

Author:
William DRAI

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.granite.client.tide.ViewScope
ViewScope.BeanResetter, ViewScope.GlobalResetter
 
Constructor Summary
DefaultViewScope()
           
 
Method Summary
 void addResetter(String name, ViewScope.BeanResetter resetter)
           
 Object get(String name)
           
 String getViewId()
           
 void put(String name, Object instance)
           
 Object remove(String name)
           
 void reset()
           
 void reset(Class<?> type)
           
 void setResetter(ViewScope.GlobalResetter resetter)
           
 void setViewId(String viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultViewScope

public DefaultViewScope()
Method Detail

getViewId

public String getViewId()
Specified by:
getViewId in interface ViewScope

setViewId

public void setViewId(String viewId)

get

public Object get(String name)
Specified by:
get in interface ViewScope

put

public void put(String name,
                Object instance)
Specified by:
put in interface ViewScope

remove

public Object remove(String name)
Specified by:
remove in interface ViewScope

reset

public void reset(Class<?> type)
Specified by:
reset in interface ViewScope

reset

public void reset()
Specified by:
reset in interface ViewScope

setResetter

public void setResetter(ViewScope.GlobalResetter resetter)
Specified by:
setResetter in interface ViewScope

addResetter

public void addResetter(String name,
                        ViewScope.BeanResetter resetter)
Specified by:
addResetter in interface ViewScope