/**
  * Check if exists a singleton for bean with name $this->objectDataStructure->getBeanName()
  */
 private function checkIfSingletonBeanExists($beanName)
 {
     $this->logger->debug('Check if exists a singleton Object with name ' . $beanName);
     return $this->singletonBeanRepositoryImpl->getBean($beanName);
 }
示例#2
0
 /**
  * Load the core container
  *
  * @return void
  */
 private function init()
 {
     $this->logger->debug('Init CoreContainer with context reference id ' . $this->contextReferenceId);
     $this->factoryObjectCreator = new FactoryObjectCreator($this->contextReferenceId);
     $this->singletonRepository = SingletonBeanRepositoryImpl::getInstance($this->contextReferenceId);
     $this->sessionRepository = SessionBeanRepositoryImpl::getInstance($this->contextReferenceId);
     $this->beansWithDestroyMethod = new BeanEnvelopeRepository();
     $this->sessionSingletonBeans = new BeanEnvelopeRepository();
     $this->sessionBeansCreated = $this->serializer->getObject(self::SESSION_BEANS_CREATED, array());
 }