Author: dazarov
Date: 2010-02-10 13:21:33 -0500 (Wed, 10 Feb 2010)
New Revision: 20225
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.project
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/bin/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Abc.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Animal.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotype.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotypeAnnotationLiteral.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BasicLogger.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BeanWithInjectionPointMetadata.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Cat.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/CatDecorator.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/ConstructorInjectionPointBean.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/FieldInjectionPointBean.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Logger.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MethodInjectionPointBean.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MyLogger.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TimestampLogger.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TransientFieldInjectionPointBean.java
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/beans.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3125
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.classpath
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.classpath 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="lib"
path="WebContent/WEB-INF/lib/javax.inject.jar"/>
+ <classpathentry kind="lib"
path="WebContent/WEB-INF/lib/cdi-api.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.project
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.project
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.project 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>test_cdi_project</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ </natures>
+</projectDescription>
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/org.eclipse.jdt.core.prefs 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,12 @@
+#Wed Feb 10 14:29:04 MSK 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Abc.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Abc.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Abc.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,15 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Qualifier
+(a)Retention(RetentionPolicy.RUNTIME)
+(a)Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER,
ElementType.TYPE})
+public @interface Abc {
+ boolean value() default true;
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Abc.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Animal.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Animal.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Animal.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+interface Animal
+{
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Animal.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotype.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotype.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotype.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.context.RequestScoped;
+import javax.enterprise.inject.Stereotype;
+
+@Stereotype
+@Target( { TYPE, METHOD, FIELD })
+@Retention(RUNTIME)
+@RequestScoped
+@interface AnimalStereotype
+{
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotype.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotypeAnnotationLiteral.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotypeAnnotationLiteral.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotypeAnnotationLiteral.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.enterprise.util.AnnotationLiteral;
+
+class AnimalStereotypeAnnotationLiteral extends AnnotationLiteral<AnimalStereotype>
implements AnimalStereotype
+{
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/AnimalStereotypeAnnotationLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BasicLogger.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BasicLogger.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BasicLogger.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.decorator.Decorator;
+
+@Decorator
+class BasicLogger implements Logger
+{
+
+ private static String message;
+
+ public String getMessage()
+ {
+ return message;
+ }
+
+ public void log(String message)
+ {
+ BasicLogger.message = message;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BasicLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BeanWithInjectionPointMetadata.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BeanWithInjectionPointMetadata.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BeanWithInjectionPointMetadata.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,37 @@
+/*
+ * 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 org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.enterprise.inject.spi.InjectionPoint;
+import javax.inject.Inject;
+
+/**
+ * Test bean with injection point on the constructor of the bean
+ *
+ * @author David Allen
+ *
+ */
+class BeanWithInjectionPointMetadata
+{
+ @Inject
+ private InjectionPoint injectedMetadata;
+
+ public InjectionPoint getInjectedMetadata()
+ {
+ return injectedMetadata;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/BeanWithInjectionPointMetadata.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Cat.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Cat.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Cat.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,25 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.enterprise.inject.spi.BeanManager;
+import javax.enterprise.inject.spi.InjectionPoint;
+import javax.inject.Inject;
+
+class Cat
+{
+ @Inject private InjectionPoint injectionPoint;
+
+ @Inject private BeanManager beanManager;
+
+ public String hello() {
+ return "hello";
+ }
+
+ public InjectionPoint getInjectionPoint() {
+ return injectionPoint;
+ }
+
+ public BeanManager getBeanManager()
+ {
+ return beanManager;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Cat.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/CatDecorator.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/CatDecorator.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/CatDecorator.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,17 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+@Decorator
+class CatDecorator extends Cat
+{
+ @Inject @Delegate Cat bean;
+
+ @Override
+ public String hello()
+ {
+ return bean.hello() + " world!";
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/CatDecorator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/ConstructorInjectionPointBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/ConstructorInjectionPointBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/ConstructorInjectionPointBean.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,41 @@
+/*
+ * 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 org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.inject.Inject;
+
+/**
+ * Test bean to inject a bean using injection point metadata into a constructor
+ *
+ * @author David Allen
+ *
+ */
+class ConstructorInjectionPointBean
+{
+ private BeanWithInjectionPointMetadata injectedBean;
+
+ @Inject
+ public ConstructorInjectionPointBean(BeanWithInjectionPointMetadata injectedBean)
+ {
+ this.injectedBean = injectedBean;
+ }
+
+ public BeanWithInjectionPointMetadata getInjectedBean()
+ {
+ return injectedBean;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/ConstructorInjectionPointBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/FieldInjectionPointBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/FieldInjectionPointBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/FieldInjectionPointBean.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,40 @@
+/*
+ * 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 org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.enterprise.context.RequestScoped;
+import javax.inject.Inject;
+
+/**
+ * Test bean to inject another bean which uses injection point metadata in a
+ * field
+ *
+ * @author David Allen
+ *
+ */
+@RequestScoped
+class FieldInjectionPointBean
+{
+ @Inject @AnimalStereotype
+ private BeanWithInjectionPointMetadata injectedBean;
+
+ public BeanWithInjectionPointMetadata getInjectedBean()
+ {
+ return injectedBean;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/FieldInjectionPointBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Logger.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Logger.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Logger.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+interface Logger
+{
+ public void log(String message);
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/Logger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,19 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.inject.Inject;
+
+class LoggerConsumer
+{
+ @Inject @Abc
+ private Logger logger;
+
+ public Logger getLogger()
+ {
+ return logger;
+ }
+
+ public void doSomething()
+ {
+ logger.log("Test message");
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MethodInjectionPointBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MethodInjectionPointBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MethodInjectionPointBean.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,42 @@
+/*
+ * 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 org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.inject.Inject;
+
+/**
+ * Test bean to inject a bean using injection point metadata into a constructor
+ *
+ * @author David Allen
+ *
+ */
+public class MethodInjectionPointBean
+{
+ private BeanWithInjectionPointMetadata injectedBean;
+
+ @Inject
+ public void methodWithInjectedMetadata(BeanWithInjectionPointMetadata injectedBean)
+ {
+ this.injectedBean = injectedBean;
+ }
+
+ public BeanWithInjectionPointMetadata getInjectedBean()
+ {
+ return injectedBean;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MethodInjectionPointBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MyLogger.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MyLogger.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MyLogger.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+@Abc
+public class MyLogger implements Logger {
+
+ public void log(String message) {
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/MyLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TimestampLogger.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TimestampLogger.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TimestampLogger.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,45 @@
+package org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import java.util.Date;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.inject.Inject;
+
+
+class TimestampLogger implements Logger
+{
+ @Inject @Delegate
+ private Logger logger;
+
+ private static Logger staticLogger;
+
+ private static String loggedMessage;
+
+ public void log(String message)
+ {
+ staticLogger = logger;
+ loggedMessage = message;
+ logger.log(new Date().toString() + ": " + message);
+ }
+
+ public static Logger getLogger()
+ {
+ return staticLogger;
+ }
+
+ /**
+ * @return the loggedMessage
+ */
+ public static String getLoggedMessage()
+ {
+ return loggedMessage;
+ }
+
+ public static void reset()
+ {
+ loggedMessage = null;
+ staticLogger = null;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TimestampLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TransientFieldInjectionPointBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TransientFieldInjectionPointBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TransientFieldInjectionPointBean.java 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,40 @@
+/*
+ * 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 org.jboss.jsr299.tck.tests.lookup.injectionpoint;
+
+import javax.enterprise.context.RequestScoped;
+import javax.inject.Inject;
+
+/**
+ * Test bean to inject another bean which uses injection point metadata in a
+ * field
+ *
+ * @author David Allen
+ *
+ */
+@RequestScoped
+class TransientFieldInjectionPointBean
+{
+ @Inject @AnimalStereotype
+ private transient BeanWithInjectionPointMetadata injectedBean;
+
+ public BeanWithInjectionPointMetadata getInjectedBean()
+ {
+ return injectedBean;
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/TransientFieldInjectionPointBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/beans.xml
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/beans.xml
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/beans.xml 2010-02-10
18:21:33 UTC (rev 20225)
@@ -0,0 +1,6 @@
+<beans>
+ <decorators>
+
<class>org.jboss.jsr299.tck.tests.lookup.injectionpoint.TimestampLogger</class>
+
<class>org.jboss.jsr299.tck.tests.lookup.injectionpoint.CatDecorator</class>
+ </decorators>
+</beans>
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/projects/test_cdi_project/src/org/jboss/jsr299/tck/tests/lookup/injectionpoint/beans.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain