[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3205) Make it easier to get the delegate you want

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Jul 30 18:15:26 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBSEAM-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12423118#action_12423118 ] 

Pete Muir commented on JBSEAM-3205:
-----------------------------------

Actually it would need to be <T> T PersistenceProvider.instance().getDelegate(Class<T> clazz, EntityManager entityManager);

Yes, that is the signature we want. I believe Christian and Dan wanted this method to make it easy to get e.g. a Session or a FullTextSession from the EntityManager rather than having to do a cast. 

> Make it easier to get the delegate you want
> -------------------------------------------
>
>                 Key: JBSEAM-3205
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3205
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Core
>            Reporter: Pete Muir
>            Assignee: Emmanuel Bernard
>             Fix For: 2.1.0.BETA2
>
>
> PersistenceProvider.instance.getDelegate(Class clazz) which returns the requested delegate (e.g. a FullTextSession)

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

        



More information about the seam-issues mailing list