org.granite.client.tide.spring
Class SpringInstanceStoreFactory.SpringInstanceStore

java.lang.Object
  extended by org.granite.client.tide.spring.SpringInstanceStoreFactory.SpringInstanceStore
All Implemented Interfaces:
InstanceStore
Enclosing class:
SpringInstanceStoreFactory

public static class SpringInstanceStoreFactory.SpringInstanceStore
extends Object
implements InstanceStore


Constructor Summary
SpringInstanceStoreFactory.SpringInstanceStore(Context context, ApplicationContext applicationContext)
           
 
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()
           
<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

SpringInstanceStoreFactory.SpringInstanceStore

public SpringInstanceStoreFactory.SpringInstanceStore(Context context,
                                                      ApplicationContext applicationContext)
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

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