[jboss-cvs] JBossAS SVN: r95765 - projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 29 11:51:35 EDT 2009
Author: remy.maucherat at jboss.com
Date: 2009-10-29 11:51:34 -0400 (Thu, 29 Oct 2009)
New Revision: 95765
Modified:
projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebFilterProcessor.java
projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebServletProcessor.java
Log:
- Add commented out description group handling.
Modified: projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebFilterProcessor.java
===================================================================
--- projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebFilterProcessor.java 2009-10-29 15:25:56 UTC (rev 95764)
+++ projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebFilterProcessor.java 2009-10-29 15:51:34 UTC (rev 95765)
@@ -35,6 +35,7 @@
import org.jboss.metadata.annotation.creator.Processor;
import org.jboss.metadata.annotation.creator.ProcessorUtils;
import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.DescriptionGroupMetaData;
import org.jboss.metadata.javaee.spec.ParamValueMetaData;
import org.jboss.metadata.web.spec.DispatcherType;
import org.jboss.metadata.web.spec.FilterMappingMetaData;
@@ -87,7 +88,11 @@
}
filter.setInitParam(initParams);
}
- // TODO: description group ?
+ DescriptionGroupMetaData descriptionGroup = null;
+ //ProcessorUtils.getDescriptionGroup(webFilter.description(), webFilter.displayName(),
+ //webFilter.smallIcon(), webFilter.largeIcon());
+ if (descriptionGroup != null)
+ filter.setDescriptionGroup(descriptionGroup);
filters.add(filter);
metaData.setFilters(filters);
if (webFilter.urlPatterns() != null || webFilter.value() != null || webFilter.servletNames() != null)
Modified: projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebServletProcessor.java
===================================================================
--- projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebServletProcessor.java 2009-10-29 15:25:56 UTC (rev 95764)
+++ projects/metadata/web/trunk/src/main/java/org/jboss/metadata/annotation/creator/web/WebServletProcessor.java 2009-10-29 15:51:34 UTC (rev 95765)
@@ -35,6 +35,7 @@
import org.jboss.metadata.annotation.creator.Processor;
import org.jboss.metadata.annotation.creator.ProcessorUtils;
import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.DescriptionGroupMetaData;
import org.jboss.metadata.javaee.spec.ParamValueMetaData;
import org.jboss.metadata.web.spec.ServletMappingMetaData;
import org.jboss.metadata.web.spec.ServletMetaData;
@@ -88,7 +89,11 @@
}
servlet.setInitParam(initParams);
}
- // TODO: description group ?
+ DescriptionGroupMetaData descriptionGroup = null;
+ //ProcessorUtils.getDescriptionGroup(webServlet.description(), ""/*webServlet.displayName()*/,
+ //webServlet.smallIcon(), webServlet.largeIcon());
+ if (descriptionGroup != null)
+ servlet.setDescriptionGroup(descriptionGroup);
servlets.add(servlet);
metaData.setServlets(servlets);
if (webServlet.urlPatterns() != null || webServlet.value() != null)
More information about the jboss-cvs-commits
mailing list