Re: Custom Context utilities

2012-04-03 Thread Pete Muir
If you are happy to be tied to a specific CDI implementation, you could use the Weld bound conversations - http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/contexts.html#d0e5506 - which can be backed by two maps, one representing the session and one the request. Or, you could take a

Re: Custom Context utilities

2012-04-03 Thread Alan D. Cabrera
That's actually the code I was looking at before I started this thread. This led me to think, if I need it then I'm pretty sure that other framework developers would need it as well, my needs being pretty straightforward. Regards, Alan On Apr 3, 2012, at 3:44 AM, Pete Muir wrote: If

Re: Custom Context utilities

2012-04-03 Thread Pete Muir
IMO it would be better if CDI offered reusable conversations, like we did with Weld, rather than it being an extension. So you can just take advantage of Weld's conversation stuff, or OWB's. Maybe there is a need to have something before we get this in CDI 1.1? On 3 Apr 2012, at 13:55, Alan D.

Re: [DISCUSS] DELTASPIKE-133 Using exception handling should be easy

2012-04-03 Thread Jason Porter
Bruno, I think you wanted to send this to a thread about security :) On Tue, Apr 3, 2012 at 07:02, Bruno Oliveira br...@abstractj.org wrote: Hi Gerard, if you want some inspiration. Here comes our real use cases: https://github.com/abstractj/aerogear-security/blob/jaas/README.md On Fri, Mar

Re: Custom Context utilities

2012-04-03 Thread Pete Muir
What Arne proposed seems reasonable to me. On 3 Apr 2012, at 17:19, Mark Struberg wrote: In fact there are good things in both the Weld and the OWB base class for all scopes. And since both those CDI impls do have such a base class, it seems that there is of course some kind of 'common'

[jira] [Created] (DELTASPIKE-144) create profile jbossas-remote-7

2012-04-03 Thread Gerhard Petracek (Created) (JIRA)
create profile jbossas-remote-7 --- Key: DELTASPIKE-144 URL: https://issues.apache.org/jira/browse/DELTASPIKE-144 Project: DeltaSpike Issue Type: Task Components: Tests Affects Versions:

Re: Custom Context utilities

2012-04-03 Thread Alan D. Cabrera
That would be ideal. I had always thought of deltaspike as a CDI incubator of sorts. Regards, Alan On Apr 3, 2012, at 5:57 AM, Pete Muir wrote: IMO it would be better if CDI offered reusable conversations, like we did with Weld, rather than it being an extension. So you can just take

Re: Custom Context utilities

2012-04-03 Thread Alan D. Cabrera
On Apr 3, 2012, at 6:17 AM, Mark Struberg wrote: I'm not sure if the CDI Conversation scope is a good example as it is widely considered pretty much broken ;) Can you provide background on your opinion for those of us who have come to the party late? :) Regards, Alan

Re: Custom Context utilities

2012-04-03 Thread Alan D. Cabrera
Ha! This was the other body of code that I was reading. IIUC, all I need to do is to implement protected MapContextual?, Instance? getContextualMap(CreationalContext? creationalContext) to reflect the scoping semantics that I need. Am I on the right track? Regards, Alan On Apr 3,

Re: Custom Context utilities

2012-04-03 Thread Gerhard Petracek
hi alan, see e.g. [1] regards, gerhard [1] http://s.apache.org/tj 2012/4/4 Alan D. Cabrera l...@toolazydogs.com On Apr 3, 2012, at 6:17 AM, Mark Struberg wrote: I'm not sure if the CDI Conversation scope is a good example as it is widely considered pretty much broken ;) Can you

[jira] [Resolved] (DELTASPIKE-142) remove @author in javadoc

2012-04-03 Thread Jason Porter (Resolved) (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Porter resolved DELTASPIKE-142. - Resolution: Fixed remove @author in javadoc -

[jira] [Updated] (DELTASPIKE-145) autom. check of license header in test files

2012-04-03 Thread Gerhard Petracek (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek updated DELTASPIKE-145: Description: recently lincoln committed 2 very trivial test files with the

[jira] [Commented] (DELTASPIKE-145) autom. check of license header in test files

2012-04-03 Thread Gerhard Petracek (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13245852#comment-13245852 ] Gerhard Petracek commented on DELTASPIKE-145: - as a first step i created

Re: Custom Context utilities

2012-04-03 Thread Alan D. Cabrera
I understand most of what the relevant slides discuss. What is does failed conversion/validation mean? Is this the bit where all the type information is collected and validated? Regards, Alan On Apr 3, 2012, at 3:14 PM, Gerhard Petracek wrote: hi alan, see e.g. [1] regards,

Re: Custom Context utilities

2012-04-03 Thread Gerhard Petracek
hi alan, that's specific to jsf and the corresponding phase in the jsf request-lifecycle. regards, gerhard 2012/4/4 Alan D. Cabrera l...@toolazydogs.com I understand most of what the relevant slides discuss. What is does failed conversion/validation mean? Is this the bit where all the