| @@ 47-106 (lines=60) @@ | ||
| 44 | * @Annotation |
|
| 45 | * @Target({"METHOD","PROPERTY"}) |
|
| 46 | */ |
|
| 47 | class EnterpriseBean extends AbstractBeanAnnotation |
|
| 48 | { |
|
| 49 | ||
| 50 | /** |
|
| 51 | * The value of the bean interface attribute. |
|
| 52 | * |
|
| 53 | * @var string |
|
| 54 | */ |
|
| 55 | protected $beanInterface; |
|
| 56 | ||
| 57 | /** |
|
| 58 | * The value of the bean name attribute. |
|
| 59 | * |
|
| 60 | * @var string |
|
| 61 | */ |
|
| 62 | protected $beanName; |
|
| 63 | ||
| 64 | /** |
|
| 65 | * The constructor the initializes the instance with the |
|
| 66 | * data passed with the token. |
|
| 67 | * |
|
| 68 | * @param array $values The annotation values |
|
| 69 | */ |
|
| 70 | public function __construct(array $values = array()) |
|
| 71 | { |
|
| 72 | ||
| 73 | // set the bean interface attribute, if available |
|
| 74 | if (isset($values[AnnotationKeys::BEAN_INTERFACE])) { |
|
| 75 | $this->beanInterface = $values[AnnotationKeys::BEAN_INTERFACE]; |
|
| 76 | } |
|
| 77 | ||
| 78 | // set the bean interface attribute, if available |
|
| 79 | if (isset($values[AnnotationKeys::BEAN_NAME])) { |
|
| 80 | $this->beanName = $values[AnnotationKeys::BEAN_NAME]; |
|
| 81 | } |
|
| 82 | ||
| 83 | // pass the values through to the parent constructor |
|
| 84 | parent::__construct($values); |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Returns the value of the bean interface attribute. |
|
| 89 | * |
|
| 90 | * @return string|null The annotations bean interface attribute |
|
| 91 | */ |
|
| 92 | public function getBeanInterface() |
|
| 93 | { |
|
| 94 | return $this->beanInterface; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * Returns the value of the bean name attribute. |
|
| 99 | * |
|
| 100 | * @return string|null The annotations bean Name attribute |
|
| 101 | */ |
|
| 102 | public function getBeanName() |
|
| 103 | { |
|
| 104 | return $this->beanName; |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||
| @@ 35-94 (lines=60) @@ | ||
| 32 | * @Annotation |
|
| 33 | * @Target({"CLASS"}) |
|
| 34 | */ |
|
| 35 | class MessageDriven extends AbstractBeanAnnotation |
|
| 36 | { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * The value of the bean interface attribute. |
|
| 40 | * |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | protected $beanInterface; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * The value of the bean name attribute. |
|
| 47 | * |
|
| 48 | * @var string |
|
| 49 | */ |
|
| 50 | protected $beanName; |
|
| 51 | ||
| 52 | /** |
|
| 53 | * The constructor the initializes the instance with the |
|
| 54 | * data passed with the token. |
|
| 55 | * |
|
| 56 | * @param array $values The annotation values |
|
| 57 | */ |
|
| 58 | public function __construct(array $values = array()) |
|
| 59 | { |
|
| 60 | ||
| 61 | // set the bean interface attribute, if available |
|
| 62 | if (isset($values[AnnotationKeys::BEAN_INTERFACE])) { |
|
| 63 | $this->beanInterface = $values[AnnotationKeys::BEAN_INTERFACE]; |
|
| 64 | } |
|
| 65 | ||
| 66 | // set the bean interface attribute, if available |
|
| 67 | if (isset($values[AnnotationKeys::BEAN_NAME])) { |
|
| 68 | $this->beanName = $values[AnnotationKeys::BEAN_NAME]; |
|
| 69 | } |
|
| 70 | ||
| 71 | // pass the values through to the parent constructor |
|
| 72 | parent::__construct($values); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Returns the value of the bean interface attribute. |
|
| 77 | * |
|
| 78 | * @return string|null The annotations bean interface attribute |
|
| 79 | */ |
|
| 80 | public function getBeanInterface() |
|
| 81 | { |
|
| 82 | return $this->beanInterface; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Returns the value of the bean name attribute. |
|
| 87 | * |
|
| 88 | * @return string|null The annotations bean Name attribute |
|
| 89 | */ |
|
| 90 | public function getBeanName() |
|
| 91 | { |
|
| 92 | return $this->beanName; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| @@ 35-94 (lines=60) @@ | ||
| 32 | * @Annotation |
|
| 33 | * @Target({"CLASS"}) |
|
| 34 | */ |
|
| 35 | class Singleton extends AbstractBeanAnnotation |
|
| 36 | { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * The value of the bean interface attribute. |
|
| 40 | * |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | protected $beanInterface; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * The value of the bean name attribute. |
|
| 47 | * |
|
| 48 | * @var string |
|
| 49 | */ |
|
| 50 | protected $beanName; |
|
| 51 | ||
| 52 | /** |
|
| 53 | * The constructor the initializes the instance with the |
|
| 54 | * data passed with the token. |
|
| 55 | * |
|
| 56 | * @param array $values The annotation values |
|
| 57 | */ |
|
| 58 | public function __construct(array $values = array()) |
|
| 59 | { |
|
| 60 | ||
| 61 | // set the bean interface attribute, if available |
|
| 62 | if (isset($values[AnnotationKeys::BEAN_INTERFACE])) { |
|
| 63 | $this->beanInterface = $values[AnnotationKeys::BEAN_INTERFACE]; |
|
| 64 | } |
|
| 65 | ||
| 66 | // set the bean interface attribute, if available |
|
| 67 | if (isset($values[AnnotationKeys::BEAN_NAME])) { |
|
| 68 | $this->beanName = $values[AnnotationKeys::BEAN_NAME]; |
|
| 69 | } |
|
| 70 | ||
| 71 | // pass the values through to the parent constructor |
|
| 72 | parent::__construct($values); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Returns the value of the bean interface attribute. |
|
| 77 | * |
|
| 78 | * @return string|null The annotations bean interface attribute |
|
| 79 | */ |
|
| 80 | public function getBeanInterface() |
|
| 81 | { |
|
| 82 | return $this->beanInterface; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Returns the value of the bean name attribute. |
|
| 87 | * |
|
| 88 | * @return string|null The annotations bean Name attribute |
|
| 89 | */ |
|
| 90 | public function getBeanName() |
|
| 91 | { |
|
| 92 | return $this->beanName; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| @@ 35-94 (lines=60) @@ | ||
| 32 | * @Annotation |
|
| 33 | * @Target({"CLASS"}) |
|
| 34 | */ |
|
| 35 | class Stateful extends AbstractBeanAnnotation |
|
| 36 | { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * The value of the bean interface attribute. |
|
| 40 | * |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | protected $beanInterface; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * The value of the bean name attribute. |
|
| 47 | * |
|
| 48 | * @var string |
|
| 49 | */ |
|
| 50 | protected $beanName; |
|
| 51 | ||
| 52 | /** |
|
| 53 | * The constructor the initializes the instance with the |
|
| 54 | * data passed with the token. |
|
| 55 | * |
|
| 56 | * @param array $values The annotation values |
|
| 57 | */ |
|
| 58 | public function __construct(array $values = array()) |
|
| 59 | { |
|
| 60 | ||
| 61 | // set the bean interface attribute, if available |
|
| 62 | if (isset($values[AnnotationKeys::BEAN_INTERFACE])) { |
|
| 63 | $this->beanInterface = $values[AnnotationKeys::BEAN_INTERFACE]; |
|
| 64 | } |
|
| 65 | ||
| 66 | // set the bean interface attribute, if available |
|
| 67 | if (isset($values[AnnotationKeys::BEAN_NAME])) { |
|
| 68 | $this->beanName = $values[AnnotationKeys::BEAN_NAME]; |
|
| 69 | } |
|
| 70 | ||
| 71 | // pass the values through to the parent constructor |
|
| 72 | parent::__construct($values); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Returns the value of the bean interface attribute. |
|
| 77 | * |
|
| 78 | * @return string|null The annotations bean interface attribute |
|
| 79 | */ |
|
| 80 | public function getBeanInterface() |
|
| 81 | { |
|
| 82 | return $this->beanInterface; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Returns the value of the bean name attribute. |
|
| 87 | * |
|
| 88 | * @return string|null The annotations bean Name attribute |
|
| 89 | */ |
|
| 90 | public function getBeanName() |
|
| 91 | { |
|
| 92 | return $this->beanName; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| @@ 35-94 (lines=60) @@ | ||
| 32 | * @Annotation |
|
| 33 | * @Target({"CLASS"}) |
|
| 34 | */ |
|
| 35 | class Stateless extends AbstractBeanAnnotation |
|
| 36 | { |
|
| 37 | ||
| 38 | /** |
|
| 39 | * The value of the bean interface attribute. |
|
| 40 | * |
|
| 41 | * @var string |
|
| 42 | */ |
|
| 43 | protected $beanInterface; |
|
| 44 | ||
| 45 | /** |
|
| 46 | * The value of the bean name attribute. |
|
| 47 | * |
|
| 48 | * @var string |
|
| 49 | */ |
|
| 50 | protected $beanName; |
|
| 51 | ||
| 52 | /** |
|
| 53 | * The constructor the initializes the instance with the |
|
| 54 | * data passed with the token. |
|
| 55 | * |
|
| 56 | * @param array $values The annotation values |
|
| 57 | */ |
|
| 58 | public function __construct(array $values = array()) |
|
| 59 | { |
|
| 60 | ||
| 61 | // set the bean interface attribute, if available |
|
| 62 | if (isset($values[AnnotationKeys::BEAN_INTERFACE])) { |
|
| 63 | $this->beanInterface = $values[AnnotationKeys::BEAN_INTERFACE]; |
|
| 64 | } |
|
| 65 | ||
| 66 | // set the bean interface attribute, if available |
|
| 67 | if (isset($values[AnnotationKeys::BEAN_NAME])) { |
|
| 68 | $this->beanName = $values[AnnotationKeys::BEAN_NAME]; |
|
| 69 | } |
|
| 70 | ||
| 71 | // pass the values through to the parent constructor |
|
| 72 | parent::__construct($values); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Returns the value of the bean interface attribute. |
|
| 77 | * |
|
| 78 | * @return string|null The annotations bean interface attribute |
|
| 79 | */ |
|
| 80 | public function getBeanInterface() |
|
| 81 | { |
|
| 82 | return $this->beanInterface; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Returns the value of the bean name attribute. |
|
| 87 | * |
|
| 88 | * @return string|null The annotations bean Name attribute |
|
| 89 | */ |
|
| 90 | public function getBeanName() |
|
| 91 | { |
|
| 92 | return $this->beanName; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||