org.granite.client.tide.cdi
Class CDIInstanceStoreFactory.CDIInstanceStore

java.lang.Object
  extended by org.granite.client.tide.cdi.CDIInstanceStoreFactory.CDIInstanceStore
All Implemented Interfaces:
InstanceStore
Enclosing class:
CDIInstanceStoreFactory

public static class CDIInstanceStoreFactory.CDIInstanceStore
extends Object
implements InstanceStore


Constructor Summary
CDIInstanceStoreFactory.CDIInstanceStore(Context context, BeanManager beanManager)
           
 
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

CDIInstanceStoreFactory.CDIInstanceStore

public CDIInstanceStoreFactory.CDIInstanceStore(Context context,
                                                BeanManager beanManager)
Method Detail

getNoProxy

public <T> T getNoProxy(String name)
Specified by:
getNoProxy 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

allNames

public List<String> allNames()
Specified by:
allNames 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