[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2055) Add Set<String> EventListeners.getEventTypes() method and public constants.

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Sep 6 17:40:24 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2055?page=comments#action_24345 ] 

Steve Ebersole commented on HHH-2055:
-------------------------------------

What about the code in Configuration that still use the "raw" strings?

> Add Set<String> EventListeners.getEventTypes() method and public constants.
> ---------------------------------------------------------------------------
>
>          Key: HHH-2055
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2055
>      Project: Hibernate3
>         Type: Improvement

>   Components: core
>     Versions: 3.2.0.cr4
>     Reporter: Josh Moore
>     Priority: Trivial
>  Attachments: elistener_patch.txt
>
>
> Since the EventListeners.getListenerClassFor(String type) takes string types, it would be useful to be able to get these strings, and perhaps even to them available as public final static String constants. Simplifies programmatic configuration, and allows for easily detecting if a new event listener type has been added or removed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list