[webbeans-dev] Web Beans TCK license
by Jay Balunas
The JSR-299 page does not set a concrete license for the RI or the TCK.
In section 2.16 and 2.18 it states that both the RI and TCK will be
licensed to be compatible with Java EE licensing. Since RI is using
ASL2 so will the TCK.
Objections/Thoughts?
-Jay
16 years, 4 months
Re: [webbeans-dev] Resolve by name and Container interface
by Pete Muir
On 7 Jul 2008, at 04:00, Marcell Manfrin Barbacena wrote:
> Hi Pete,
>
> I downloaded again the early draft and it is as I said. Do I need to
> be in the expert group to get these updates?
I can't publish the version I have. You need to contact Gavin for a
copy.
> ps.: i looked at resin impl and their api is as described by early
> draft.
>
> []s
>
> On Sun, Jul 6, 2008 at 3:43 PM, Pete Muir <pete.muir(a)jboss.org> wrote:
> I think you have an out of date spec. 4.2.1 gives the API currently
> in svn.
>
>
> On 5 Jul 2008, at 05:59, Marcell Manfrin Barbacena wrote:
>
> hi,
>
> I was reading the spec and at section 3.2.1 it says the container
> interface would have a
> "public Component resolveByName(String name)"
> method. However I looked at RI api and there we have a
> "public Set<ComponentInstance> resolveByName(String name)".
> I did understand the change in the Component class to not conflict
> with the Component annotation but why is it returning a Set if the
> spec says a exception should be throw when multiples component
> instances are found?
>
> Ty
>
> --
> "Nobody knows who i really am
> I never felt this empty before
> And if I never need someone to come along
> Who's gonna comfort me and keep me strong?"
> --
> Marcell Manfrin Barbacena
> barbacena(a)gmail.com
> MSN Messenger: marcell84bruk(a)hotmail.com
> Skype: callto://marcell84bruk
> +55 (83) 8808-8555 (Oi)
> +55 (61) 8152-7533 (Tim)
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
>
>
>
> --
> "Nobody knows who i really am
> I never felt this empty before
> And if I never need someone to come along
> Who's gonna comfort me and keep me strong?"
> --
> Marcell Manfrin Barbacena
> barbacena(a)gmail.com
> MSN Messenger: marcell84bruk(a)hotmail.com
> Skype: callto://marcell84bruk
> +55 (83) 8808-8555 (Oi)
> +55 (61) 8152-7533 (Tim)
16 years, 4 months
[webbeans-dev] Resolve by name and Container interface
by Marcell Manfrin Barbacena
hi,
I was reading the spec and at section 3.2.1 it says the container interface
would have a
"public Component resolveByName(String name)"
method. However I looked at RI api and there we have a
"public Set<ComponentInstance> resolveByName(String name)".
I did understand the change in the Component class to not conflict with the
Component annotation but why is it returning a Set if the spec says a
exception should be throw when multiples component instances are found?
Ty
--
"Nobody knows who i really am
I never felt this empty before
And if I never need someone to come along
Who's gonna comfort me and keep me strong?"
--
Marcell Manfrin Barbacena
barbacena(a)gmail.com
MSN Messenger: marcell84bruk(a)hotmail.com
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)
+55 (61) 8152-7533 (Tim)
16 years, 4 months
[webbeans-dev] Context.destroy()
by Shane Bryzak
This section of the spec suggests that the javax.webbeans.Context
interface needs a destroy() method also:
9.1.2. Context destruction
At certain points in the execution of the program, the context
associated with the current thread is destroyed. When a context
is destroyed, the Context implementation must destroy all component
instances associated with the current context by
passing each instance to the destroy() method of the Component object
representing the component. A destroyed instance
must not subsequently be returned by the get() method.
16 years, 4 months
[webbeans-dev] Remote components and @BoundTo
by Pete Muir
The spec doesn't make it clear what the container should do if a
@Remote component is deployed and it is missing @BoundTo - I think
throw an exception as that is what it does in all other cases.
16 years, 4 months
[webbeans-dev] Re: [webbeans-commits] Webbeans SVN: r37 - ri/trunk/webbeans-api/src/main/java/javax/webbeans.
by Pete Muir
The spec says the exception should be called "ContextNotActive" but
this flies in the face of the convention of calling the exception
"FooException".
Intentional or mistake?
Thanks :)
On 3 Jul 2008, at 02:55, webbeans-commits(a)lists.jboss.org wrote:
> Author: shane.bryzak(a)jboss.com
> Date: 2008-07-02 21:55:49 -0400 (Wed, 02 Jul 2008)
> New Revision: 37
>
> Added:
> ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActive.java
> Removed:
> ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActiveException.java
> Log:
> renamed to correct name as per spec
>
> Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActive.java
> ===================================================================
> --- ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActive.java (rev 0)
> +++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActive.java 2008-07-03 01:55:49 UTC (rev 37)
> @@ -0,0 +1,49 @@
> +/*
> +* JBoss, Home of Professional Open Source
> +* Copyright 2008, Red Hat Middleware LLC, and individual contributors
> +* by the @authors tag. See the copyright.txt in the distribution
> for a
> +* full listing of individual contributors.
> +*
> +* Licensed under the Apache License, Version 2.0 (the "License");
> +* you may not use this file except in compliance with the License.
> +* You may obtain a copy of the License at
> +* http://www.apache.org/licenses/LICENSE-2.0
> +* Unless required by applicable law or agreed to in writing, software
> +* distributed under the License is distributed on an "AS IS" BASIS,
> +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> +* See the License for the specific language governing permissions and
> +* limitations under the License.
> +*/
> +
> +package javax.webbeans;
> +
> +/**
> + * This exception is thrown if an invocation is performed on an
> inactive scope.
> + *
> + * @author Pete Muir
> + * @author Shane Bryzak
> + */
> +
> +public class ContextNotActive extends RuntimeException
> +{
> +
> + public ContextNotActive()
> + {
> + }
> +
> + public ContextNotActive(String message)
> + {
> + super(message);
> + }
> +
> + public ContextNotActive(Throwable cause)
> + {
> + super(cause);
> + }
> +
> + public ContextNotActive(String message, Throwable cause)
> + {
> + super(message, cause);
> + }
> +
> +}
>
> Deleted: ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActiveException.java
> ===================================================================
> --- ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActiveException.java 2008-07-01 17:50:29 UTC (rev 36)
> +++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/
> ContextNotActiveException.java 2008-07-03 01:55:49 UTC (rev 37)
> @@ -1,47 +0,0 @@
> -/*
> -* JBoss, Home of Professional Open Source
> -* Copyright 2008, Red Hat Middleware LLC, and individual contributors
> -* by the @authors tag. See the copyright.txt in the distribution
> for a
> -* full listing of individual contributors.
> -*
> -* Licensed under the Apache License, Version 2.0 (the "License");
> -* you may not use this file except in compliance with the License.
> -* You may obtain a copy of the License at
> -* http://www.apache.org/licenses/LICENSE-2.0
> -* Unless required by applicable law or agreed to in writing, software
> -* distributed under the License is distributed on an "AS IS" BASIS,
> -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> -* See the License for the specific language governing permissions and
> -* limitations under the License.
> -*/
> -
> -package javax.webbeans;
> -
> -/**
> - *
> - * @author Pete Muir
> - */
> -
> -public class ContextNotActiveException extends RuntimeException
> -{
> -
> - public ContextNotActiveException()
> - {
> - }
> -
> - public ContextNotActiveException(String message)
> - {
> - super(message);
> - }
> -
> - public ContextNotActiveException(Throwable cause)
> - {
> - super(cause);
> - }
> -
> - public ContextNotActiveException(String message, Throwable cause)
> - {
> - super(message, cause);
> - }
> -
> -}
>
> _______________________________________________
> webbeans-commits mailing list
> webbeans-commits(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-commits
16 years, 4 months