Author: scabanovich
Date: 2012-05-24 20:37:18 -0400 (Thu, 24 May 2012)
New Revision: 41399
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/SecuredBean2.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/cdi-api.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-api-0.2-incubating.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-impl-0.2-incubating.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-api-0.3-incubating-20120521.003520-10.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-impl-0.3-incubating-20120521.003526-10.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/javax.inject.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/jboss-ejb3-api-3.1.0.jar
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/Property2.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/SettingsBean.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/ExcludedBean.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/MyHandlers.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/MyBean.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/SimpleMessage.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/Admin.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomAuthorizer.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding2.java
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/SecuredBean1.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.project
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
Log:
JBIDE-11552
https://issues.jboss.org/browse/JBIDE-11552
Test projects are filled with artefacts.
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.classpath 2012-05-24
23:59:11 UTC (rev 41398)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.classpath 2012-05-25
00:37:18 UTC (rev 41399)
@@ -1,6 +1,7 @@
<?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/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry combineaccessrules="false" exported="true"
kind="src" path="/DeltaspikeCoreTest"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.project
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.project 2012-05-24
23:59:11 UTC (rev 41398)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/.project 2012-05-25
00:37:18 UTC (rev 41399)
@@ -10,8 +10,25 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
</natures>
</projectDescription>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/SecuredBean2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/SecuredBean2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/SecuredBean2.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,53 @@
+package deltaspike.security2;
+
+import java.util.Set;
+
+import org.apache.deltaspike.security.api.authorization.AccessDecisionVoter;
+import org.apache.deltaspike.security.api.authorization.AccessDecisionVoterContext;
+import org.apache.deltaspike.security.api.authorization.SecurityViolation;
+import org.apache.deltaspike.security.api.authorization.annotation.Secured;
+import org.apache.deltaspike.security.api.authorization.annotation.Secures;
+
+import deltaspike.security.Admin;
+import deltaspike.security.CustomSecurityBinding;
+import deltaspike.security.CustomSecurityBinding2;
+
+public class SecuredBean2 {
+
+ @CustomSecurityBinding2
+ @Admin
+ public SecuredBean2 doSomething() {
+ return null;
+ }
+
+
+ @CustomSecurityBinding(2)
+ public SecuredBean2 doSomething1() {
+ return null;
+ }
+
+ @CustomSecurityBinding(4)
+ public SecuredBean2 doSomething2() {
+ return null;
+ }
+
+ @CustomSecurityBinding(1)
+ public SecuredBean2 doSomething3() {
+ return null;
+ }
+
+ @Secured(A.class)
+ public void a() {
+ }
+
+}
+
+class A implements AccessDecisionVoter {
+
+ @Override
+ public Set<SecurityViolation> checkPermission(
+ AccessDecisionVoterContext accessDecisionVoterContext) {
+ return null;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreRootTest/src/deltaspike/security2/SecuredBean2.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath 2012-05-24
23:59:11 UTC (rev 41398)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath 2012-05-25
00:37:18 UTC (rev 41399)
@@ -1,6 +1,13 @@
<?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/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry exported="true" kind="lib"
path="lib/cdi-api.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/javax.inject.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/jboss-ejb3-api-3.1.0.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/deltaspike-core-api-0.2-incubating.jar"
sourcepath="/home/slava/.m2/repository/org/apache/deltaspike/core/deltaspike-core-api/0.2-incubating/deltaspike-core-api-0.2-incubating-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/deltaspike-core-impl-0.2-incubating.jar"
sourcepath="/home/slava/.m2/repository/org/apache/deltaspike/core/deltaspike-core-impl/0.2-incubating/deltaspike-core-impl-0.2-incubating-sources.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/deltaspike-security-module-api-0.3-incubating-20120521.003520-10.jar"/>
+ <classpathentry exported="true" kind="lib"
path="lib/deltaspike-security-module-impl-0.3-incubating-20120521.003526-10.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project 2012-05-24
23:59:11 UTC (rev 41398)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project 2012-05-25
00:37:18 UTC (rev 41399)
@@ -10,8 +10,25 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
</natures>
</projectDescription>
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/cdi-api.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/cdi-api.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-api-0.2-incubating.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-api-0.2-incubating.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-impl-0.2-incubating.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-core-impl-0.2-incubating.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-api-0.3-incubating-20120521.003520-10.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-api-0.3-incubating-20120521.003520-10.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-impl-0.3-incubating-20120521.003526-10.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/deltaspike-security-module-impl-0.3-incubating-20120521.003526-10.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/javax.inject.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/javax.inject.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/jboss-ejb3-api-3.1.0.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/lib/jboss-ejb3-api-3.1.0.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/Property2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/Property2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/Property2.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,24 @@
+package deltaspike.config;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+import org.apache.deltaspike.core.api.config.annotation.ConfigProperty;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+@Qualifier
+@Target({ TYPE, METHOD, PARAMETER, FIELD })
+@Retention(RUNTIME)
+@Documented
+@ConfigProperty(name = "property2")
+public @interface Property2 {
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/Property2.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/SettingsBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/SettingsBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/SettingsBean.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,16 @@
+package deltaspike.config;
+
+import javax.inject.Inject;
+
+import org.apache.deltaspike.core.api.config.annotation.ConfigProperty;
+
+public class SettingsBean {
+ @Inject
+ @ConfigProperty(name = "property1")
+ String property1;
+
+ @Inject
+ @Property2
+ Long property2;
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/config/SettingsBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/ExcludedBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/ExcludedBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/ExcludedBean.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,10 @@
+package deltaspike.exclude;
+
+import javax.inject.Named;
+
+import org.apache.deltaspike.core.api.exclude.annotation.Exclude;
+
+@Exclude
+@Named
+public class ExcludedBean {
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/exclude/ExcludedBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/MyHandlers.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/MyHandlers.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/MyHandlers.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,12 @@
+package deltaspike.handler;
+
+import org.apache.deltaspike.core.api.exception.control.annotation.ExceptionHandler;
+import org.apache.deltaspike.core.api.exception.control.annotation.Handles;
+import org.apache.deltaspike.core.api.exception.control.event.ExceptionEvent;
+
+@ExceptionHandler
+public class MyHandlers {
+
+ void printExceptions(@Handles ExceptionEvent<Throwable> evt) {
+ }
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/handler/MyHandlers.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/MyBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/MyBean.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/MyBean.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,14 @@
+package deltaspike.message;
+
+import javax.inject.Inject;
+
+import org.apache.deltaspike.core.api.message.MessageContext;
+
+public class MyBean {
+
+ @Inject
+ SimpleMessage messages;
+
+ @Inject
+ MessageContext messageContext;
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/MyBean.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/SimpleMessage.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/SimpleMessage.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/SimpleMessage.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,8 @@
+package deltaspike.message;
+
+import org.apache.deltaspike.core.api.message.annotation.MessageBundle;
+
+@MessageBundle
+public interface SimpleMessage {
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/message/SimpleMessage.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/Admin.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/Admin.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/Admin.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,23 @@
+package deltaspike.security;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.enterprise.inject.Stereotype;
+
+import org.apache.deltaspike.security.api.authorization.annotation.Secured;
+
+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;
+
+@Stereotype
+@Target({ TYPE, METHOD, FIELD })
+@Retention(RUNTIME)
+@Documented
+(a)Secured(A.class)
+public @interface Admin {
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/Admin.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomAuthorizer.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomAuthorizer.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomAuthorizer.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,35 @@
+package deltaspike.security;
+
+import org.apache.deltaspike.security.api.authorization.annotation.Secures;
+
+public class CustomAuthorizer {
+
+ @Secures
+ @CustomSecurityBinding(4)
+ public boolean check() {
+ return true;
+ }
+
+ @Secures
+ @CustomSecurityBinding(4)
+ public boolean check1() {
+ return true;
+ }
+
+ @Secures
+ @CustomSecurityBinding(2)
+ public boolean check2() {
+ return true;
+ }
+
+ @Secures
+ @CustomSecurityBinding2
+ public void check3() {
+ }
+
+ @Secures
+ public boolean check4() {
+ return true;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomAuthorizer.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,8 @@
+package deltaspike.security;
+
+import org.apache.deltaspike.security.api.authorization.annotation.SecurityBindingType;
+
+@SecurityBindingType
+public @interface CustomSecurityBinding {
+ int value() default 0;
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding2.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding2.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding2.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,8 @@
+package deltaspike.security;
+
+import org.apache.deltaspike.security.api.authorization.annotation.SecurityBindingType;
+
+@SecurityBindingType
+public @interface CustomSecurityBinding2 {
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/CustomSecurityBinding2.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/SecuredBean1.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/SecuredBean1.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/SecuredBean1.java 2012-05-25
00:37:18 UTC (rev 41399)
@@ -0,0 +1,47 @@
+package deltaspike.security;
+
+import java.util.Set;
+
+import org.apache.deltaspike.security.api.authorization.AccessDecisionVoter;
+import org.apache.deltaspike.security.api.authorization.AccessDecisionVoterContext;
+import org.apache.deltaspike.security.api.authorization.SecurityViolation;
+import org.apache.deltaspike.security.api.authorization.annotation.Secured;
+
+public class SecuredBean1 {
+
+ @CustomSecurityBinding2
+ @Admin
+ public SecuredBean1 doSomething() {
+ return null;
+ }
+
+
+ @CustomSecurityBinding(2)
+ public SecuredBean1 doSomething1() {
+ return null;
+ }
+
+ @CustomSecurityBinding(4)
+ public SecuredBean1 doSomething2() {
+ return null;
+ }
+
+ @CustomSecurityBinding(1)
+ public SecuredBean1 doSomething3() {
+ return null;
+ }
+
+ @Secured(A.class)
+ public void a() {
+ }
+}
+
+class A implements AccessDecisionVoter {
+
+ @Override
+ public Set<SecurityViolation> checkPermission(
+ AccessDecisionVoterContext accessDecisionVoterContext) {
+ return null;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/deltaspike/security/SecuredBean1.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain