tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r391990 - in /tomcat/tc6.0.x/trunk/java/javax/annotation: ./ security/
Date Thu, 06 Apr 2006 14:09:47 GMT
Author: remm
Date: Thu Apr  6 07:09:45 2006
New Revision: 391990

URL: http://svn.apache.org/viewcvs?rev=391990&view=rev
Log:
- Add common annotations interfaces.
- The latest docs seem to indicate that it's Declare*s*Roles.

Added:
    tomcat/tc6.0.x/trunk/java/javax/annotation/
    tomcat/tc6.0.x/trunk/java/javax/annotation/Generated.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/PostConstruct.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/PreDestroy.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/Resource.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/Resources.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/DeclaresRoles.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/DenyAll.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/PermitAll.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/RolesAllowed.java
    tomcat/tc6.0.x/trunk/java/javax/annotation/security/RunAs.java

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/Generated.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/Generated.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/Generated.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/Generated.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation;
+
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.LOCAL_VARIABLE;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PACKAGE;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.SOURCE;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER,
TYPE})
+@Retention(SOURCE)
+
+public @interface Generated {
+    public String[] value();
+    public String date() default "";
+    public String comment() default "";
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/PostConstruct.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/PostConstruct.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/PostConstruct.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/PostConstruct.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({METHOD})
+@Retention(RUNTIME)
+public @interface PostConstruct {
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/PreDestroy.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/PreDestroy.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/PreDestroy.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/PreDestroy.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({METHOD})
+@Retention(RUNTIME)
+public @interface PreDestroy {
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/Resource.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/Resource.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/Resource.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/Resource.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation;
+
+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;
+
+@Target({TYPE, METHOD, FIELD})
+@Retention(RUNTIME)
+public @interface Resource {
+    public enum AuthenticationType {
+        CONTAINER,
+        APPLICATION
+    }
+    public String name() default "";
+    public Class type() default Object.class;
+    public AuthenticationType authenticationType() default AuthenticationType.CONTAINER;
+    public boolean shareable() default true;
+    public String description() default "";
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/Resources.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/Resources.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/Resources.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/Resources.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({TYPE})
+@Retention(RUNTIME)
+public @interface Resources {
+    public Resource[] value();
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/security/DeclaresRoles.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/security/DeclaresRoles.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/security/DeclaresRoles.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/security/DeclaresRoles.java Thu Apr  6 07:09:45
2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation.security;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({TYPE})
+@Retention(RUNTIME)
+public @interface DeclaresRoles {
+    public String[] value();
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/security/DenyAll.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/security/DenyAll.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/security/DenyAll.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/security/DenyAll.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation.security;
+
+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;
+
+@Target({TYPE,METHOD})
+@Retention(RUNTIME)
+public @interface DenyAll {
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/security/PermitAll.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/security/PermitAll.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/security/PermitAll.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/security/PermitAll.java Thu Apr  6 07:09:45
2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation.security;
+
+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;
+
+@Target({TYPE,METHOD})
+@Retention(RUNTIME)
+public @interface PermitAll {
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/security/RolesAllowed.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/security/RolesAllowed.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/security/RolesAllowed.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/security/RolesAllowed.java Thu Apr  6 07:09:45
2006
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation.security;
+
+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;
+
+@Target({TYPE,METHOD})
+@Retention(RUNTIME)
+public @interface RolesAllowed {
+    public String[] value();
+}

Added: tomcat/tc6.0.x/trunk/java/javax/annotation/security/RunAs.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/annotation/security/RunAs.java?rev=391990&view=auto
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/annotation/security/RunAs.java (added)
+++ tomcat/tc6.0.x/trunk/java/javax/annotation/security/RunAs.java Thu Apr  6 07:09:45 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * 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.annotation.security;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target({TYPE})
+@Retention(RUNTIME)
+public @interface RunAs {
+    public String value();
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message