org.granite.client.tide.impl
Class SimpleInstanceStore

java.lang.Object
  extended by org.granite.client.tide.impl.SimpleInstanceStore
All Implemented Interfaces:
InstanceStore

public class SimpleInstanceStore
extends Object
implements InstanceStore

Author:
William DRAI

Constructor Summary
SimpleInstanceStore(Context context)
           
 
Method Summary
 Map<String,Object> allByAnnotatedWith(Class<? extends Annotation> annotationClass, Context context)
           
<T> T[]
allByType(Class<T> type, Context context, boolean create)
           
 List<String> allNames()
           
<T> T
byName(String name, Context context)
           
<T> T
byType(Class<T> type, Context context)
           
 void clear()
           
protected  Object createInstance()
           
<T> T
getNoProxy(String name)
           
 void remove(String name)
           
 void set(Object instance)
           
 void set(String name, Object instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInstanceStore

public SimpleInstanceStore(Context context)
Method Detail

getNoProxy

public <T> T getNoProxy(String name)
Specified by:
getNoProxy in interface InstanceStore

set

public void set(String name,
                Object instance)
Specified by:
set in interface InstanceStore

set

public void set(Object instance)
Specified by:
set in interface InstanceStore

remove

public void remove(String name)
Specified by:
remove in interface InstanceStore

clear

public void clear()
Specified by:
clear in interface InstanceStore

allNames

public List<String> allNames()
Specified by:
allNames in interface InstanceStore

byName

public <T> T byName(String name,
                    Context context)
Specified by:
byName in interface InstanceStore

createInstance

protected Object createInstance()

byType

public <T> T byType(Class<T> type,
                    Context context)
Specified by:
byType in interface InstanceStore

allByType

public <T> T[] allByType(Class<T> type,
                         Context context,
                         boolean create)
Specified by:
allByType in interface InstanceStore

allByAnnotatedWith

public Map<String,Object> allByAnnotatedWith(Class<? extends Annotation> annotationClass,
                                             Context context)
Specified by:
allByAnnotatedWith in interface InstanceStore