use of org.jboss.metadata.web.jboss.JBossServletMetaData in project wildfly by wildfly.
the class WebMetaDataHelper method newServlet.
/**
* Creates new servlet meta data and associates them with servlets meta data.
*
* @param servletName servlet name
* @param servletClass servlet class name
* @param servletsMD servlets meta data
* @return new servlet meta data
*/
public static JBossServletMetaData newServlet(final String servletName, final String servletClass, final JBossServletsMetaData servletsMD) {
final JBossServletMetaData servletMD = new JBossServletMetaData();
servletMD.setServletName(servletName);
servletMD.setServletClass(servletClass);
servletsMD.add(servletMD);
return servletMD;
}
Aggregations