You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org> on 2011/08/11 17:57:27 UTC

[jira] [Created] (CAY-1599) Annotation-based global listeners registration

Annotation-based global listeners registration
----------------------------------------------

                 Key: CAY-1599
                 URL: https://issues.apache.org/jira/browse/CAY-1599
             Project: Cayenne
          Issue Type: Improvement
          Components: Core Library
    Affects Versions: 3.1M2
            Reporter: Dzmitry Kazimirchyk


Add possibility to register global event listeners with a help of annotations.

Now Cayenne does nothing with listener's methods which have event annotations without specified entities. So we can use such no parameter annotations to register global callbacks.
Something like:

@PrePersist
public void onPrePersist(Object object) {
	// global callback
}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1599) Annotation-based global listeners registration

Posted by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dzmitry Kazimirchyk closed CAY-1599.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M3
         Assignee: Dzmitry Kazimirchyk

> Annotation-based global listeners registration
> ----------------------------------------------
>
>                 Key: CAY-1599
>                 URL: https://issues.apache.org/jira/browse/CAY-1599
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M2
>            Reporter: Dzmitry Kazimirchyk
>            Assignee: Dzmitry Kazimirchyk
>             Fix For: 3.1M3
>
>
> Add possibility to register global event listeners with a help of annotations.
> Now Cayenne does nothing with listener's methods which have event annotations without specified entities. So we can use such no parameter annotations to register global callbacks.
> Something like:
> @PrePersist
> public void onPrePersist(Object object) {
> 	// global callback
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira