Package io.avaje.inject
Class SystemContext
java.lang.Object
io.avaje.inject.SystemContext
@Deprecated public class SystemContext extends Object
Deprecated.
Deprecated - migrate to ApplicationScope.
Provides a global system wide BeanScope that contains all the beans.
This will automatically get all the beans and wire them all as necessary. It will use
a shutdown hook to fire any @PreDestroy methods on beans.
Example: get a bean
CoffeeMaker coffeeMaker = ApplicationScope.get(CoffeeMaker.class);
coffeeMaker.brew();
-
Method Summary
Modifier and Type Method Description static BeanScopecontext()Deprecated.static <T> TgetBean(Class<T> type)Deprecated.static <T> TgetBean(Class<T> type, String name)Deprecated.static <T> List<T>getBeans(Class<T> interfaceType)Deprecated.static <T> List<T>getBeansByPriority(Class<T> interfaceType)Deprecated.static List<Object>getBeansWithAnnotation(Class<?> annotation)Deprecated.
-
Method Details
-
context
Deprecated.Deprecated - migrate to ApplicationScope.scope(). -
getBean
Deprecated.Deprecated - migrate to ApplicationScope.get(type). -
getBean
Deprecated.Deprecated - migrate to ApplicationScope.get(type, name). -
getBeansWithAnnotation
Deprecated.Deprecated - migrate to ApplicationScope.listByAnnotation(annotation). -
getBeans
Deprecated.Deprecated - migrate to ApplicationScope.list(). -
getBeansByPriority
Deprecated.Deprecated - migrate to ApplicationScope.listByPriority().
-