Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update BeanManager to new spec, add bridge for tests that use SPI met…
…hods which are no longer available, implement new bootstrap events, partial implementation of new methods of BeanManager in ManagerImpl. git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2765 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Clint Popetz
committed
Jun 4, 2009
1 parent
14cc591
commit fb48c54
Showing
34 changed files
with
694 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 2 additions & 38 deletions
40
api/src/main/java/javax/enterprise/inject/spi/AfterBeanDiscovery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,5 @@ | ||
/* | ||
* 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.enterprise.inject.spi; | ||
|
||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.ElementType.PARAMETER; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.enterprise.inject.BindingType; | ||
|
||
/** | ||
* Event binding type for the event that is raised by the manager when | ||
* it has completed resolving and validation | ||
* | ||
* @author Pete Muir | ||
*/ | ||
|
||
@BindingType | ||
@Retention(RUNTIME) | ||
@Target( { FIELD, PARAMETER }) | ||
public @interface AfterBeanDiscovery | ||
{ | ||
public interface AfterBeanDiscovery { | ||
public void addDefinitionError(Throwable t); | ||
} |
12 changes: 12 additions & 0 deletions
12
api/src/main/java/javax/enterprise/inject/spi/Annotated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Type; | ||
import java.util.Set; | ||
|
||
public interface Annotated { | ||
Type getType(); | ||
public <T extends Annotation> T getAnnotation(Class<T> annotationType); | ||
public Set<Annotation> getAnnotations(); | ||
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType); | ||
} |
7 changes: 7 additions & 0 deletions
7
api/src/main/java/javax/enterprise/inject/spi/AnnotatedCallable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.util.List; | ||
|
||
public interface AnnotatedCallable<X> extends AnnotatedMember<X> { | ||
public List<AnnotatedParameter<X>> getParameters(); | ||
} |
7 changes: 7 additions & 0 deletions
7
api/src/main/java/javax/enterprise/inject/spi/AnnotatedConstructor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.lang.reflect.Constructor; | ||
|
||
public interface AnnotatedConstructor<X> extends AnnotatedCallable<X> { | ||
public Constructor<X> getJavaMember(); | ||
} |
7 changes: 7 additions & 0 deletions
7
api/src/main/java/javax/enterprise/inject/spi/AnnotatedField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.lang.reflect.Field; | ||
|
||
public interface AnnotatedField<X> extends AnnotatedMember<X> { | ||
public Field getJavaMember(); | ||
} |
9 changes: 9 additions & 0 deletions
9
api/src/main/java/javax/enterprise/inject/spi/AnnotatedMember.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.lang.reflect.Member; | ||
|
||
public interface AnnotatedMember<X> extends Annotated { | ||
public Member getJavaMember(); | ||
public boolean isStatic(); | ||
public AnnotatedType<X> getDeclaringType(); | ||
} |
7 changes: 7 additions & 0 deletions
7
api/src/main/java/javax/enterprise/inject/spi/AnnotatedMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.lang.reflect.Method; | ||
|
||
public interface AnnotatedMethod<X> extends AnnotatedCallable<X> { | ||
public Method getJavaMember(); | ||
} |
6 changes: 6 additions & 0 deletions
6
api/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
public interface AnnotatedParameter<X> extends Annotated { | ||
public int getPosition(); | ||
public AnnotatedCallable<X> getDeclaringCallable(); | ||
} |
10 changes: 10 additions & 0 deletions
10
api/src/main/java/javax/enterprise/inject/spi/AnnotatedType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package javax.enterprise.inject.spi; | ||
|
||
import java.util.Set; | ||
|
||
public interface AnnotatedType<X> extends Annotated { | ||
public Class<X> getJavaClass(); | ||
public Set<AnnotatedConstructor<X>> getConstructors(); | ||
public Set<AnnotatedMethod<? super X>> getMethods(); | ||
public Set<AnnotatedField<? super X>> getFields(); | ||
} |
Oops, something went wrong.