public function doVariableProperty(\org\equinox\ioc\BeanDefinition $bean, $propertyName) { $beanProperty = new \org\equinox\ioc\ResourceVariableProperty(); $beanProperty->setName($propertyName); $beanProperty->setRef($this->getValue($bean, $propertyName)); $bean->addProperty($beanProperty); }
private function getExpectedBean() { $bean = new \org\equinox\ioc\BeanDefinition(); $bean->setId('Bean'); $bean->setClassName('org\\equinox\\ioc\\componentScan\\package\\Bean'); $bean->setScope(\org\equinox\ioc\BeanDefinition::SCOPE_SINGLETON); // variable Ressource $property = new \org\equinox\ioc\ResourceVariableProperty(); $property->setName("dep"); $property->setRef("dep"); $bean->addProperty($property); // setter setDependancy() $setter = new \org\equinox\ioc\ResourceSetterProperty(); $setter->setName("setDependancy"); $setter->setRef('dep'); $bean->addProperty($setter); return $bean; }