PHP 클래스 bitExpert\Disco\Proxy\Configuration\MethodGenerator\BeanMethod

상속: extends ProxyManager\Generator\MethodGenerator
파일 보기 프로젝트 열기: bitExpert/disco 1 사용 예제들

공개 메소드들

메소드 설명
fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : ProxyManager\Generator\MethodGenerator
generateMethod ( Zend\Code\Reflection\MethodReflection $originalMethod, Bean $beanMetadata, Parameters $methodParameters, $beanType, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, BeanFactoryConfigurationProperty $beanFactoryConfigurationProperty, GetParameter $parameterValuesMethod, WrapBeanAsLazy $wrapBeanAsLazy ) : BeanMethod | ProxyManager\Generator\MethodGenerator Creates a new {@link \bitExpert\Disco\Proxy\Configuration\MethodGenerator\BeanMethod}.

보호된 메소드들

메소드 설명
convertMethodParamsToString ( Parameters $methodParameters, GetParameter $parameterValuesMethod ) : string Converts the Parameter annotations to the respective getParameter() method calls to retrieve the configuration values.
generateBeanCreationCode ( string $padding, string $beanId, string $methodParams, BeanPostProcessorsProperty $postProcessorsProperty ) : string Helper method to generate the code to initialize a bean.
generateLazyBeanCode ( string $padding, string $beanId, string $beanType, Bean $beanMetadata, string $methodParams, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, BeanFactoryConfigurationProperty $beanFactoryConfigurationProperty ) : string Helper method to generate the method body for managing lazy bean instances.
generateNonLazyBeanCode ( string $padding, string $beanId, string $beanType, Bean $beanMetadata, string $methodParams, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, WrapBeanAsLazy $wrapBeanAsLazy ) : string Helper method to generate the method body for managing non-lazy bean instances.

메소드 상세

convertMethodParamsToString() 보호된 정적인 메소드

Converts the Parameter annotations to the respective getParameter() method calls to retrieve the configuration values.
protected static convertMethodParamsToString ( Parameters $methodParameters, GetParameter $parameterValuesMethod ) : string
$methodParameters bitExpert\Disco\Annotations\Parameters
$parameterValuesMethod GetParameter
리턴 string

fromReflection() 공개 정적인 메소드

public static fromReflection ( Zend\Code\Reflection\MethodReflection $reflectionMethod ) : ProxyManager\Generator\MethodGenerator
$reflectionMethod Zend\Code\Reflection\MethodReflection
리턴 ProxyManager\Generator\MethodGenerator

generateBeanCreationCode() 보호된 정적인 메소드

Helper method to generate the code to initialize a bean.
protected static generateBeanCreationCode ( string $padding, string $beanId, string $methodParams, BeanPostProcessorsProperty $postProcessorsProperty ) : string
$padding string
$beanId string
$methodParams string
$postProcessorsProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanPostProcessorsProperty
리턴 string

generateLazyBeanCode() 보호된 정적인 메소드

Helper method to generate the method body for managing lazy bean instances.
protected static generateLazyBeanCode ( string $padding, string $beanId, string $beanType, Bean $beanMetadata, string $methodParams, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, BeanFactoryConfigurationProperty $beanFactoryConfigurationProperty ) : string
$padding string
$beanId string
$beanType string
$beanMetadata bitExpert\Disco\Annotations\Bean
$methodParams string
$forceLazyInitProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\ForceLazyInitProperty
$sessionBeansProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\SessionBeansProperty
$postProcessorsProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanPostProcessorsProperty
$beanFactoryConfigurationProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanFactoryConfigurationProperty
리턴 string

generateMethod() 공개 정적인 메소드

Creates a new {@link \bitExpert\Disco\Proxy\Configuration\MethodGenerator\BeanMethod}.
public static generateMethod ( Zend\Code\Reflection\MethodReflection $originalMethod, Bean $beanMetadata, Parameters $methodParameters, $beanType, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, BeanFactoryConfigurationProperty $beanFactoryConfigurationProperty, GetParameter $parameterValuesMethod, WrapBeanAsLazy $wrapBeanAsLazy ) : BeanMethod | ProxyManager\Generator\MethodGenerator
$originalMethod Zend\Code\Reflection\MethodReflection
$beanMetadata bitExpert\Disco\Annotations\Bean
$methodParameters bitExpert\Disco\Annotations\Parameters
$beanType
$forceLazyInitProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\ForceLazyInitProperty
$sessionBeansProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\SessionBeansProperty
$postProcessorsProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanPostProcessorsProperty
$beanFactoryConfigurationProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanFactoryConfigurationProperty
$parameterValuesMethod GetParameter
$wrapBeanAsLazy WrapBeanAsLazy
리턴 BeanMethod | ProxyManager\Generator\MethodGenerator

generateNonLazyBeanCode() 보호된 정적인 메소드

Helper method to generate the method body for managing non-lazy bean instances.
protected static generateNonLazyBeanCode ( string $padding, string $beanId, string $beanType, Bean $beanMetadata, string $methodParams, ForceLazyInitProperty $forceLazyInitProperty, SessionBeansProperty $sessionBeansProperty, BeanPostProcessorsProperty $postProcessorsProperty, WrapBeanAsLazy $wrapBeanAsLazy ) : string
$padding string
$beanId string
$beanType string
$beanMetadata bitExpert\Disco\Annotations\Bean
$methodParams string
$forceLazyInitProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\ForceLazyInitProperty
$sessionBeansProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\SessionBeansProperty
$postProcessorsProperty bitExpert\Disco\Proxy\Configuration\PropertyGenerator\BeanPostProcessorsProperty
$wrapBeanAsLazy WrapBeanAsLazy
리턴 string