Esempio n. 1
0
 /**
  * Create the BeanStructure for the bean $beanName , $className and $contextReferenceId
  *
  * @param string $beanName the name of the bean
  * @param string $beanClass the class of the bean
  * @param string $beanScope the scope of the bean
  * @param string $contextReferenceId the application context id
  *
  * @return BeanEnvelope
  */
 private function createObjectStructure($beanName, $beanClass, $beanScope, $contextReferenceId)
 {
     $this->logger->debug('createObjectStructure for bean with name ' . $beanName);
     $object = $this->getBeanEnvelopeObject();
     $object->setName($beanName);
     $object->setScope($beanScope);
     $object->setClass($beanClass);
     $object->setArgs($this->getBeanArgs($beanName, $contextReferenceId));
     $object->setProperties($this->contextReader->getBeanProperties($beanName));
     $object->setInitMethod($this->contextReader->getBeanInitMethod($beanName));
     $object->setDestroyMethod($this->contextReader->getBeanDestroyMethod($beanName));
     $object->setFactoryMethod($this->contextReader->getBeanFactoryMethod($beanName));
     $object->setContextReferenceId($contextReferenceId);
     return $object;
 }