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();