Author: struberg
Date: Thu May 19 10:51:46 2011
New Revision: 1124682
URL: http://svn.apache.org/viewvc?rev=1124682&view=rev
Log:
move Adonis to an own <contributors> section
Added:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/DecoratedBean.java
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/GenericInterface.java
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/TestDecorator.java
Modified:
openwebbeans/trunk/pom.xml
Modified: openwebbeans/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/pom.xml?rev=1124682&r1=1124681&r2=1124682&view=diff
==============================================================================
--- openwebbeans/trunk/pom.xml (original)
+++ openwebbeans/trunk/pom.xml Thu May 19 10:51:46 2011
@@ -213,15 +213,17 @@
<role>PMC</role>
</roles>
</developer>
- <developer>
- <id>rederpj</id>
+ </developers>
+
+ <contributors>
+ <contributor>
<name>Adonis Raduca</name>
<email>adonis.raduca at codebeat.ro</email>
<roles>
- <role>Contributor,Logo-creator</role>
+ <role>Logo-creator</role>
</roles>
- </developer>
- </developers>
+ </contributor>
+ </contributors>
<build>
<defaultGoal>install</defaultGoal>
Added:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/DecoratedBean.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/DecoratedBean.java?rev=1124682&view=auto
==============================================================================
---
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/DecoratedBean.java
(added)
+++
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/DecoratedBean.java
Thu May 19 10:51:46 2011
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.webbeans.test.component.decorator.generic;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Scope;
+
+@ApplicationScoped
+public class DecoratedBean implements GenericInterface<Scope>
+{
+
+ public boolean isDecoratorCalled()
+ {
+ return false;
+ }
+}
Added:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/GenericInterface.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/GenericInterface.java?rev=1124682&view=auto
==============================================================================
---
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/GenericInterface.java
(added)
+++
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/GenericInterface.java
Thu May 19 10:51:46 2011
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.webbeans.test.component.decorator.generic;
+
+import java.lang.annotation.Annotation;
+
+public interface GenericInterface<A extends Annotation>
+{
+ boolean isDecoratorCalled();
+
+}
Added:
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/TestDecorator.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/TestDecorator.java?rev=1124682&view=auto
==============================================================================
---
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/TestDecorator.java
(added)
+++
openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/component/decorator/generic/TestDecorator.java
Thu May 19 10:51:46 2011
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.webbeans.test.component.decorator.generic;
+
+import javax.decorator.Decorator;
+import javax.decorator.Delegate;
+import javax.enterprise.inject.Any;
+import javax.inject.Inject;
+import java.lang.annotation.Annotation;
+
+@Decorator
+public class TestDecorator<T extends Annotation> implements GenericInterface<T>
+{
+
+ @Inject
+ @Any
+ @Delegate
+ private GenericInterface<T> delegate;
+
+ public boolean isDecoratorCalled()
+ {
+ if (delegate.isDecoratorCalled())
+ {
+ throw new IllegalStateException();
+ }
+ return true;
+ }
+}