/** * Creates and initializes a beans injection target configuration instance from the passed * reflection method instance. * * @param \AppserverIo\Lang\Reflection\MethodInterface $reflectionMethod The reflection method with the beans injection target configuration * * @return \AppserverIo\Psr\EnterpriseBeans\Description\InjectionTargetDescriptorInterface|null The initialized descriptor instance */ public function fromReflectionMethod(MethodInterface $reflectionMethod) { // initialize the injection target from the passed method $this->setTargetClass($reflectionMethod->getClassName()); $this->setTargetMethod($reflectionMethod->getMethodName()); // return the instance return $this; }