Class AbstractScope

    • Constructor Detail

      • AbstractScope

        public AbstractScope()
    • Method Detail

      • getBeanInstance

        public BeanInstance getBeanInstance​(BeanRule beanRule)
        Description copied from interface: Scope
        Returns an instance of the bean that matches the given bean rule.
        Specified by:
        getBeanInstance in interface Scope
        Parameters:
        beanRule - the bean rule of the bean to retrieve
        Returns:
        an instance of the bean
      • putBeanInstance

        public void putBeanInstance​(Activity activity,
                                    BeanRule beanRule,
                                    BeanInstance beanInstance)
        Description copied from interface: Scope
        Saves an instantiated bean with the given bean rule into the scope.
        Specified by:
        putBeanInstance in interface Scope
        Parameters:
        activity - the current activity
        beanRule - the bean rule of the bean to save
        beanInstance - an instance of the bean
      • destroy

        public void destroy​(java.lang.Object bean)
                     throws java.lang.Exception
        Specified by:
        destroy in interface Scope
        Throws:
        java.lang.Exception
      • destroy

        public void destroy()
        Description copied from interface: Scope
        Destroy all scoped beans in this scope.
        Specified by:
        destroy in interface Scope