AppserverIo\Appserver\PersistenceContainer\BeanManager::newAnnotationInstance PHP Метод

newAnnotationInstance() публичный Метод

Creates a new new instance of the annotation type, defined in the passed reflection annotation.
public newAnnotationInstance ( AppserverIo\Lang\Reflection\AnnotationInterface $annotation ) : AppserverIo\Lang\Reflection\AnnotationInterface
$annotation AppserverIo\Lang\Reflection\AnnotationInterface The reflection annotation we want to create the instance for
Результат AppserverIo\Lang\Reflection\AnnotationInterface The real annotation instance
    public function newAnnotationInstance(AnnotationInterface $annotation)
    {
        return $this->getApplication()->search('ProviderInterface')->newAnnotationInstance($annotation);
    }