This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit a09b243fc2aedf47fd1d3d1a090b70c9c532f324 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sun Feb 4 16:08:20 2024 +0000 Remove unused code --- .../apache/catalina/startup/WebAnnotationSet.java | 69 ---------------------- 1 file changed, 69 deletions(-) diff --git a/java/org/apache/catalina/startup/WebAnnotationSet.java b/java/org/apache/catalina/startup/WebAnnotationSet.java index d11885f65b..c2bfc8011e 100644 --- a/java/org/apache/catalina/startup/WebAnnotationSet.java +++ b/java/org/apache/catalina/startup/WebAnnotationSet.java @@ -182,75 +182,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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org