On Sun, Feb 4, 2024 at 5:24 PM <[email protected]> wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> markt pushed a commit to branch main
> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>
> commit d08f9c55fd9c360a3e00737108ef7a1031142e35
> Author: Mark Thomas <[email protected]>
> AuthorDate: Sun Feb 4 16:08:20 2024 +0000
>
> Remove unused code
The code had always been there as a "what if" regarding EE.
Rémy
> ---
> .../apache/catalina/startup/WebAnnotationSet.java | 70
> ----------------------
> 1 file changed, 70 deletions(-)
>
> diff --git a/java/org/apache/catalina/startup/WebAnnotationSet.java
> b/java/org/apache/catalina/startup/WebAnnotationSet.java
> index 04ddb7c196..11581af941 100644
> --- a/java/org/apache/catalina/startup/WebAnnotationSet.java
> +++ b/java/org/apache/catalina/startup/WebAnnotationSet.java
> @@ -184,76 +184,6 @@ public class WebAnnotationSet {
> addResource(context, resource);
> }
> }
> - /* Process EJB annotation.
> - * Ref JSR 224, equivalent to the ejb-ref or ejb-local-ref
> - * element in the deployment descriptor.
> - {
> - EJB annotation = clazz.getAnnotation(EJB.class);
> - if (annotation != null) {
> -
> - if ((annotation.mappedName().length() == 0)
> - || annotation.mappedName().equals("Local")) {
> -
> - ContextLocalEjb ejb = new ContextLocalEjb();
> -
> - ejb.setName(annotation.name());
> -
> ejb.setType(annotation.beanInterface().getCanonicalName());
> - ejb.setDescription(annotation.description());
> -
> - ejb.setHome(annotation.beanName());
> -
> - context.getNamingResources().addLocalEjb(ejb);
> -
> - } else if (annotation.mappedName().equals("Remote")) {
> -
> - ContextEjb ejb = new ContextEjb();
> -
> - ejb.setName(annotation.name());
> -
> ejb.setType(annotation.beanInterface().getCanonicalName());
> - ejb.setDescription(annotation.description());
> -
> - ejb.setHome(annotation.beanName());
> -
> - context.getNamingResources().addEjb(ejb);
> -
> - }
> - }
> - }
> - */
> - /* Process WebServiceRef annotation.
> - * Ref JSR 224, equivalent to the service-ref element in
> - * the deployment descriptor.
> - * The service-ref registration is not implemented
> - {
> - WebServiceRef annotation = clazz
> - .getAnnotation(WebServiceRef.class);
> - if (annotation != null) {
> - ContextService service = new ContextService();
> -
> - service.setName(annotation.name());
> - service.setWsdlfile(annotation.wsdlLocation());
> -
> - service.setType(annotation.type().getCanonicalName());
> -
> - if (annotation.value() == null)
> - service.setServiceinterface(annotation.type()
> - .getCanonicalName());
> -
> - if (annotation.type().getCanonicalName().equals("Service"))
> - service.setServiceinterface(annotation.type()
> - .getCanonicalName());
> -
> - if (annotation.value().getCanonicalName().equals("Endpoint"))
> - service.setServiceendpoint(annotation.type()
> - .getCanonicalName());
> -
> - service.setPortlink(annotation.type().getCanonicalName());
> -
> - context.getNamingResources().addService(service);
> - }
> - }
> - */
> -
> /* Process DeclareRoles annotation.
> * Ref JSR 250, equivalent to the security-role element in
> * the deployment descriptor
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]