From: remm Date: Wed, 12 Apr 2006 13:18:19 +0000 (+0000) Subject: - Update APIs and annotations. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=87b7fee3483f2f9cc6333152e925e460b257da1e;p=tomcat7.0 - Update APIs and annotations. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@393454 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/javax/annotation/EJB.java b/java/javax/annotation/EJB.java new file mode 100644 index 000000000..13b308e6b --- /dev/null +++ b/java/javax/annotation/EJB.java @@ -0,0 +1,34 @@ +/* + * 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 java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.METHOD, ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface EJB { + String name() default ""; + Class businessInterface() default java.lang.Object.class; + String beanName() default ""; + String mappedName() default ""; + String description() default ""; +} diff --git a/java/javax/annotation/EJBs.java b/java/javax/annotation/EJBs.java new file mode 100644 index 000000000..62e7a9ae0 --- /dev/null +++ b/java/javax/annotation/EJBs.java @@ -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 java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface EJBs { + EJB[] value(); +} diff --git a/java/javax/annotation/Generated.java b/java/javax/annotation/Generated.java index 2ea72197a..a0da75626 100644 --- a/java/javax/annotation/Generated.java +++ b/java/javax/annotation/Generated.java @@ -17,21 +17,15 @@ 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.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE}) -@Retention(SOURCE) +@Target({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, + ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.METHOD, + ElementType.PACKAGE, ElementType.PARAMETER, ElementType.TYPE}) +@Retention(RetentionPolicy.SOURCE) public @interface Generated { public String[] value(); diff --git a/java/javax/annotation/PostConstruct.java b/java/javax/annotation/PostConstruct.java index 5e1173c66..43fcbce38 100644 --- a/java/javax/annotation/PostConstruct.java +++ b/java/javax/annotation/PostConstruct.java @@ -17,13 +17,13 @@ package javax.annotation; -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({METHOD}) -@Retention(RUNTIME) +@Target({ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface PostConstruct { } diff --git a/java/javax/annotation/PreDestroy.java b/java/javax/annotation/PreDestroy.java index 6237c66e3..609ae2006 100644 --- a/java/javax/annotation/PreDestroy.java +++ b/java/javax/annotation/PreDestroy.java @@ -17,13 +17,13 @@ package javax.annotation; -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({METHOD}) -@Retention(RUNTIME) +@Target({ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface PreDestroy { } diff --git a/java/javax/annotation/Resource.java b/java/javax/annotation/Resource.java index 8e0418fd6..50da1ece3 100644 --- a/java/javax/annotation/Resource.java +++ b/java/javax/annotation/Resource.java @@ -17,16 +17,14 @@ 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.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE, METHOD, FIELD}) -@Retention(RUNTIME) +@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface Resource { public enum AuthenticationType { CONTAINER, diff --git a/java/javax/annotation/Resources.java b/java/javax/annotation/Resources.java index 22525ccb2..512868d2e 100644 --- a/java/javax/annotation/Resources.java +++ b/java/javax/annotation/Resources.java @@ -17,14 +17,14 @@ package javax.annotation; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE}) -@Retention(RUNTIME) +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + public @interface Resources { public Resource[] value(); } diff --git a/java/javax/annotation/security/DeclaresRoles.java b/java/javax/annotation/security/DeclaresRoles.java index 97bd7162c..ccbd951c8 100644 --- a/java/javax/annotation/security/DeclaresRoles.java +++ b/java/javax/annotation/security/DeclaresRoles.java @@ -17,14 +17,14 @@ package javax.annotation.security; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE}) -@Retention(RUNTIME) +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + public @interface DeclaresRoles { public String[] value(); } diff --git a/java/javax/annotation/security/DenyAll.java b/java/javax/annotation/security/DenyAll.java index 265d81743..030971abc 100644 --- a/java/javax/annotation/security/DenyAll.java +++ b/java/javax/annotation/security/DenyAll.java @@ -17,14 +17,13 @@ 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.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE,METHOD}) -@Retention(RUNTIME) +@Target({ElementType.TYPE, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface DenyAll { } diff --git a/java/javax/annotation/security/PermitAll.java b/java/javax/annotation/security/PermitAll.java index 5aad01316..a5a03c1e6 100644 --- a/java/javax/annotation/security/PermitAll.java +++ b/java/javax/annotation/security/PermitAll.java @@ -17,14 +17,13 @@ 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.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE,METHOD}) -@Retention(RUNTIME) +@Target({ElementType.TYPE, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface PermitAll { } diff --git a/java/javax/annotation/security/RolesAllowed.java b/java/javax/annotation/security/RolesAllowed.java index 6c9a9aa3f..4138ca2dc 100644 --- a/java/javax/annotation/security/RolesAllowed.java +++ b/java/javax/annotation/security/RolesAllowed.java @@ -17,15 +17,14 @@ 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.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE,METHOD}) -@Retention(RUNTIME) +@Target({ElementType.TYPE, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) + public @interface RolesAllowed { public String[] value(); } diff --git a/java/javax/annotation/security/RunAs.java b/java/javax/annotation/security/RunAs.java index f9ac28c78..70fa273a2 100644 --- a/java/javax/annotation/security/RunAs.java +++ b/java/javax/annotation/security/RunAs.java @@ -17,14 +17,14 @@ package javax.annotation.security; -import static java.lang.annotation.ElementType.TYPE; -import static java.lang.annotation.RetentionPolicy.RUNTIME; - +import java.lang.annotation.ElementType; import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({TYPE}) -@Retention(RUNTIME) +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + public @interface RunAs { public String value(); } diff --git a/java/javax/mail/Authenticator.java b/java/javax/mail/Authenticator.java new file mode 100644 index 000000000..4a49baed0 --- /dev/null +++ b/java/javax/mail/Authenticator.java @@ -0,0 +1,5 @@ +package javax.mail; + +public class Authenticator { + +} diff --git a/java/javax/mail/PasswordAuthentication.java b/java/javax/mail/PasswordAuthentication.java new file mode 100644 index 000000000..8ab17547b --- /dev/null +++ b/java/javax/mail/PasswordAuthentication.java @@ -0,0 +1,6 @@ +package javax.mail; + +public class PasswordAuthentication { + public PasswordAuthentication(String user, String password) { + } +} diff --git a/java/javax/mail/Session.java b/java/javax/mail/Session.java new file mode 100644 index 000000000..5175f88da --- /dev/null +++ b/java/javax/mail/Session.java @@ -0,0 +1,12 @@ +package javax.mail; + +import java.util.Properties; + +public class Session { + public static Session getInstance(Properties props, Authenticator auth) { + return null; + } + public static Session getInstance(Properties props) { + return null; + } +} diff --git a/java/javax/mail/internet/InternetAddress.java b/java/javax/mail/internet/InternetAddress.java new file mode 100644 index 000000000..c88b2837e --- /dev/null +++ b/java/javax/mail/internet/InternetAddress.java @@ -0,0 +1,6 @@ +package javax.mail.internet; + +public class InternetAddress { + public InternetAddress(String from) { + } +} diff --git a/java/javax/mail/internet/MimeMessage.java b/java/javax/mail/internet/MimeMessage.java new file mode 100644 index 000000000..48c0f9af8 --- /dev/null +++ b/java/javax/mail/internet/MimeMessage.java @@ -0,0 +1,12 @@ +package javax.mail.internet; + +import javax.mail.Session; + +public class MimeMessage { + public MimeMessage(Session session) { + } + public void setFrom(InternetAddress from) { + } + public void setSubject(String subject) { + } +} diff --git a/java/javax/mail/internet/MimePart.java b/java/javax/mail/internet/MimePart.java new file mode 100644 index 000000000..94ae94ac7 --- /dev/null +++ b/java/javax/mail/internet/MimePart.java @@ -0,0 +1,4 @@ +package javax.mail.internet; + +public interface MimePart { +} diff --git a/java/javax/mail/internet/MimePartDataSource.java b/java/javax/mail/internet/MimePartDataSource.java new file mode 100644 index 000000000..f2de2a036 --- /dev/null +++ b/java/javax/mail/internet/MimePartDataSource.java @@ -0,0 +1,6 @@ +package javax.mail.internet; + +public class MimePartDataSource { + public MimePartDataSource(MimePart part) { + } +} diff --git a/java/javax/persistence/PersistenceContext.java b/java/javax/persistence/PersistenceContext.java new file mode 100644 index 000000000..bd6d62f17 --- /dev/null +++ b/java/javax/persistence/PersistenceContext.java @@ -0,0 +1,36 @@ +/* + * 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.persistence; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface PersistenceContext { + public enum PersistenceContextType { + TRANSACTION, + EXTENDED + } + String name() default ""; + String unitName() default ""; + PersistenceContextType type() default PersistenceContextType.TRANSACTION; +} diff --git a/java/javax/persistence/PersistenceContexts.java b/java/javax/persistence/PersistenceContexts.java new file mode 100644 index 000000000..9617fd338 --- /dev/null +++ b/java/javax/persistence/PersistenceContexts.java @@ -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.persistence; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ ElementType.TYPE }) +@Retention(RetentionPolicy.RUNTIME) + +public @interface PersistenceContexts { + PersistenceContext[] value(); +} diff --git a/java/javax/persistence/PersistenceUnit.java b/java/javax/persistence/PersistenceUnit.java new file mode 100644 index 000000000..a5be36394 --- /dev/null +++ b/java/javax/persistence/PersistenceUnit.java @@ -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.persistence; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface PersistenceUnit { + String name() default ""; + String unitName() default ""; +} diff --git a/java/javax/persistence/PersistenceUnits.java b/java/javax/persistence/PersistenceUnits.java new file mode 100644 index 000000000..224d52d1e --- /dev/null +++ b/java/javax/persistence/PersistenceUnits.java @@ -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.persistence; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import javax.persistence.PersistenceUnit; + +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface PersistenceUnits { + PersistenceUnit[] value(); +} diff --git a/java/javax/servlet/resources/web-app_2_4.xsd b/java/javax/servlet/resources/web-app_2_4.xsd index c5dbfa267..171ac4f8d 100644 --- a/java/javax/servlet/resources/web-app_2_4.xsd +++ b/java/javax/servlet/resources/web-app_2_4.xsd @@ -1,38 +1,25 @@ - + version="2.5"> - %W% %E% + @(#)web-app_2_5.xsds 1.62 05/08/06 - Copyright 2004 Sun Microsystems, Inc., 901 San Antonio - Road, Palo Alto, California 94303, U.S.A. All rights - reserved. + Copyright 2003-2005 Sun Microsystems, Inc. + 4150 Network Circle + Santa Clara, California 95054 + U.S.A + All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology described in this document. In @@ -66,29 +53,29 @@ + version="2.5"> ... The instance documents may indicate the published version of - the schema using the xsi:schemaLocation attribute for J2EE + the schema using the xsi:schemaLocation attribute for Java EE namespace with the following location: - http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd + http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd ]]> @@ -97,7 +84,7 @@ - The following conventions apply to all J2EE + The following conventions apply to all Java EE deployment descriptor elements unless indicated otherwise. - In elements that specify a pathname to a file within the @@ -112,14 +99,14 @@ - - + + - + @@ -133,7 +120,7 @@ file must not contain multiple elements of session-config, jsp-config, and login-config. When there are multiple elements of welcome-file-list or locale-encoding-mapping-list, the container - must concatinate the element contents. The multiple occurance + must concatenate the element contents. The multiple occurence of the element distributable is redundant and the container treats that case exactly in the same way when there is only one distributable. @@ -150,8 +137,8 @@ - - + + @@ -163,8 +150,8 @@ - - + + @@ -181,8 +168,8 @@ - - + + @@ -199,8 +186,8 @@ - - + + @@ -215,8 +202,8 @@ - - + + @@ -231,8 +218,8 @@ - - + + @@ -246,8 +233,8 @@ - - + + @@ -262,8 +249,8 @@ - - + + @@ -275,12 +262,12 @@ - - + + + refer="javaee:web-app-role-name-key"> @@ -289,8 +276,8 @@ - - + + @@ -319,10 +306,10 @@ @@ -348,7 +335,7 @@ - + @@ -373,7 +360,7 @@ - + @@ -412,7 +399,7 @@ - + @@ -437,10 +424,10 @@ + type="javaee:error-codeType"/> + type="javaee:fully-qualified-classType"> @@ -453,7 +440,7 @@ + type="javaee:war-pathType"> @@ -496,15 +483,15 @@ - + type="javaee:filter-nameType"/> + + type="javaee:url-patternType"/> + type="javaee:servlet-nameType"/> @@ -527,7 +514,7 @@ - + @@ -550,11 +537,11 @@ - + + type="javaee:filter-nameType"/> + type="javaee:fully-qualified-classType"> @@ -565,7 +552,7 @@ @@ -598,7 +585,7 @@ + type="javaee:war-pathType"> @@ -612,7 +599,7 @@ + type="javaee:war-pathType"> @@ -632,29 +619,27 @@ - + - The http-method contains an HTTP method recognized by the - web-app, for example GET, POST, ... + A HTTP method type as defined in HTTP 1.1 section 2.2. - - - - - - - - - - - - + + + + + + + + + + + @@ -670,7 +655,7 @@ @@ -692,9 +677,9 @@ + type="javaee:localeType"/> + type="javaee:encodingType"/> @@ -734,10 +719,10 @@ + type="javaee:string" minOccurs="0"> @@ -748,7 +733,7 @@ @@ -779,9 +764,9 @@ + type="javaee:string"/> + type="javaee:mime-typeType"/> @@ -803,8 +788,8 @@ - - + + @@ -819,7 +804,7 @@ - + @@ -827,6 +812,14 @@ + + + + + + + + @@ -842,17 +835,17 @@ @@ -874,9 +867,10 @@ + type="javaee:servlet-nameType"/> + type="javaee:url-patternType" + minOccurs="1" maxOccurs="unbounded"/> @@ -895,7 +889,7 @@ - + @@ -917,12 +911,12 @@ - + + type="javaee:servlet-nameType"/> + type="javaee:fully-qualified-classType"> @@ -934,15 +928,15 @@ + type="javaee:jsp-fileType"/> @@ -968,10 +962,10 @@ @@ -993,7 +987,7 @@ @@ -1039,7 +1033,7 @@ - + @@ -1064,11 +1058,11 @@ + type="javaee:transport-guaranteeType"/> @@ -1086,7 +1080,7 @@ - + @@ -1105,7 +1099,7 @@ - + @@ -1114,11 +1108,11 @@ - + + type="javaee:emptyType"/> + type="javaee:param-valueType"> @@ -1132,42 +1126,65 @@ + type="javaee:filterType"/> + type="javaee:filter-mappingType"/> + type="javaee:listenerType"/> + type="javaee:servletType"/> + type="javaee:servlet-mappingType"/> + type="javaee:session-configType"/> + type="javaee:mime-mappingType"/> + type="javaee:welcome-file-listType"/> + type="javaee:error-pageType"/> + type="javaee:jsp-configType"/> + type="javaee:security-constraintType"/> + type="javaee:login-configType"/> - + type="javaee:security-roleType"/> + + type="javaee:message-destinationType"/> + type="javaee:locale-encoding-mapping-listType"/> + + + + + + The full attribute defines whether this deployment + descriptor is complete, or whether the class files + of the jar file should be examined for annotations + that specify deployment information. + + If full is set to "true", the deployment tool + must ignore any Servlet annotations present in the + class files of the application. + + If full is not specified or is set to "false", the + deployment tool must examine the class files of the + application for annotations, as specified by the Servlet + specifications. + + + + + @@ -1189,7 +1206,7 @@ + type="javaee:string"> @@ -1200,14 +1217,14 @@ diff --git a/java/javax/xml/ws/WebServiceRef.java b/java/javax/xml/ws/WebServiceRef.java new file mode 100644 index 000000000..f6a6cb513 --- /dev/null +++ b/java/javax/xml/ws/WebServiceRef.java @@ -0,0 +1,34 @@ +/* + * 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.xml.ws; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface WebServiceRef { + public String name() default ""; + public Class type() default java.lang.Object.class; + public Class value() default java.lang.Object.class; + public String wsdlLocation() default ""; + public String mappedName() default ""; +} diff --git a/java/javax/xml/ws/WebServiceRefs.java b/java/javax/xml/ws/WebServiceRefs.java new file mode 100644 index 000000000..ea6a8382d --- /dev/null +++ b/java/javax/xml/ws/WebServiceRefs.java @@ -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.xml.ws; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) + +public @interface WebServiceRefs { + public WebServiceRef[] value(); +}