users@javaee-spec.java.net

[javaee-spec users] Re: [jsr342-experts] Staging (was Re: Configuration)

From: Antonio Goncalves <antonio.goncalves_at_gmail.com>
Date: Wed, 8 Jun 2011 12:47:54 +0200

Yes, my bad, I was looking at the Proposed Final Draft 10 from June 2009

Yes I like the idea of defining a set of stages in EE and the possibility to
add extra as needed

Antonio

On Wed, Jun 8, 2011 at 11:55, Pete Muir <pmuir_at_bleepbleep.org.uk> wrote:

> Hi Antonio
>
> The CDI spec doesn't have an appendix. You must be looking at an old
> version.
>
> I sent this to Werner in response to his mail. Unfortunately due to the
> fact I can't post to the EE EG, I doubt you saw it.
>
> > At some point CDI had "deployment types" which were essentially an open
> set of "project stages". These were simply an annotation, meta-annotated
> with @DeploymentType.
> >
> > CDI 1.0 replaced these with alternatives, which do essentially the same
> thing as far as CDI is concerned (as you can apply them on stereotypes).
> >
> > I think the original approach is quite reasonable, and all would be
> required would be for EE to define a set of these, and others can add as
> needed.
>
> Pete
>
> On 8 Jun 2011, at 09:16, Antonio Goncalves wrote:
>
> > JSF has the following staging :
> > Development
> > UnitTest
> > SystemTest
> > Production
> > Werner I was having a look at the CDI spec and, indeed, in the appendix
> B.8 it talks about a javax.enterprise.inject.deployment package :
> >
> > "B.8. javax.enterprise.inject.deployment
> > The package javax.enterprise.inject.deployment contains annotations
> relating to deployment types and specialization.
> > Annotations: @DeploymentType, @Specializes
> > Deployment types: @Production, @Standard"
> >
> > Strange enough, I can't find the API for this package.
> >
> > Antonio
> >
> > On Tue, Jun 7, 2011 at 16:12, Werner Keil <werner.keil_at_gmail.com> wrote:
> > I fully agree, although even in the scope of JSF it'll require a bit more
> than that enum.
> >
> > CDI 1.0 had a DeploymentContext which AFAIK was pulled out of the Final
> release, but what I read from earlier specs, this had potential to help
> define "stages" in a more flexible way.
> >
> >
> > On Tue, Jun 7, 2011 at 5:45 PM, Antonio Goncalves <
> antonio.goncalves_at_gmail.com> wrote:
> > Java EE defines a set of roles, why not defining a set of staging so each
> spec could take that into account ? I think introducing staging in JSF 2.0
> was a very good idea, why not apply it to the entire platform ?
> >
>
>


-- 
Antonio Goncalves
Software architect and Java Champion
Web site <http://www.antoniogoncalves.org> |
Twitter<http://twitter.com/agoncal>|
Blog <http://feeds.feedburner.com/AntonioGoncalves> |
LinkedIn<http://www.linkedin.com/in/agoncal>| Paris
JUG <http://www.parisjug.org>