Class AbstractScope

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroy all scoped beans in this scope.
      BeanInstance getBeanInstance​(BeanRule beanRule)
      Returns an instance of the bean that matches the given bean rule.
      java.util.concurrent.locks.ReadWriteLock getScopeLock()
      Returns the scope lock.
      void putBeanInstance​(BeanRule beanRule, BeanInstance beanInstance)
      Saves an instantiated bean with the given bean rule into the scope.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScopeLock

        public java.util.concurrent.locks.ReadWriteLock getScopeLock()
        Description copied from interface: Scope
        Returns the scope lock.
        Specified by:
        getScopeLock in interface Scope
        Returns:
        the scope lock
      • 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​(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:
        beanRule - the bean rule of the bean to save
        beanInstance - an instance of the bean
      • destroy

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