本文整理了Java中org.jboss.metadata.web.spec.WebMetaData.getServlets()
方法的一些代码示例,展示了WebMetaData.getServlets()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMetaData.getServlets()
方法的具体详情如下:
包路径:org.jboss.metadata.web.spec.WebMetaData
类名称:WebMetaData
方法名:getServlets
暂无
代码示例来源:origin: org.jboss.metadata/jboss-metadata-war
public void process(WebMetaData metaData, Class<?> type)
{
WebServlet annotation = finder.getAnnotation(type, WebServlet.class);
if(annotation == null)
return;
WebMetaData servletMetaData = create(type);
if (metaData.getServlets() == null)
{
metaData.setServlets(servletMetaData.getServlets());
}
else
{
metaData.getServlets().addAll(servletMetaData.getServlets());
}
if (metaData.getServletMappings() == null)
{
metaData.setServletMappings(servletMetaData.getServletMappings());
}
else if (servletMetaData.getServletMappings() != null)
{
metaData.getServletMappings().addAll(servletMetaData.getServletMappings());
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510-metadata
public static void merge(WebMetaData merged, WebMetaData xml, WebMetaData annotation)
{
//Merge the servlets meta data
ServletsMetaData servletsMetaData = new ServletsMetaData();
merge(servletsMetaData,xml.getServlets(), annotation.getServlets());
merged.setServlets(servletsMetaData);
//Security Roles
SecurityRolesMetaData securityRolesMetaData = new SecurityRolesMetaData();
merge(securityRolesMetaData, xml.getSecurityRoles(), annotation.getSecurityRoles());
merged.setSecurityRoles(securityRolesMetaData);
//Env
EnvironmentRefsGroupMetaData environmentRefsGroup = new EnvironmentRefsGroupMetaData();
Environment xmlEnv = xml != null ? xml.getJndiEnvironmentRefsGroup() : null;
Environment annEnv = annotation != null ? annotation.getJndiEnvironmentRefsGroup() : null;
environmentRefsGroup.merge(xmlEnv,annEnv, "", "", false);
merged.setJndiEnvironmentRefsGroup(environmentRefsGroup);
//Message Destinations
MessageDestinationsMetaData messageDestinations = new MessageDestinationsMetaData();
messageDestinations.merge(xml.getMessageDestinations(), annotation.getMessageDestinations());
merged.setMessageDestinations(messageDestinations);
//merge annotation
mergeIn(merged,annotation);
//merge xml override
mergeIn(merged,xml);
}
代码示例来源:origin: org.jboss/jboss-metadata
@Override
public void process(WebMetaData metaData, Class<?> type)
{
super.process(metaData, type);
EnvironmentRefsGroupMetaData env = new EnvironmentRefsGroupMetaData();
super.process(env, type);
metaData.setJndiEnvironmentRefsGroup(env);
// @RunAs
ServletsMetaData servlets = metaData.getServlets();
if(servlets == null)
{
servlets = new ServletsMetaData();
metaData.setServlets(servlets);
}
super.processClass(servlets, type);
// @DeclareRoles
SecurityRolesMetaData securityRoles = metaData.getSecurityRoles();
if(securityRoles == null)
{
securityRoles = new SecurityRolesMetaData();
metaData.setSecurityRoles(securityRoles);
}
super.processClass(securityRoles, type);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510-metadata
ServletsMetaData servlets = metaData.getServlets();
if(servlets == null)
代码示例来源:origin: org.jboss.metadata/jboss-metadata-web
public static void merge(WebCommonMetaData merged, WebCommonMetaData xml, WebMetaData annotation) {
merge(servletsMetaData, xml.getServlets(), annotation.getServlets());
merged.setServlets(servletsMetaData);
代码示例来源:origin: org.jboss.metadata/jboss-metadata-war
merge(servletsMetaData, xml.getServlets(), annotation.getServlets());
merged.setServlets(servletsMetaData);
代码示例来源:origin: org.jboss/jboss-metadata
soverride = override.getServlets();
if(original != null)
soriginal = original.getServlets();
servlets = JBossServletsMetaData.merge(soverride, soriginal);
代码示例来源:origin: org.jboss.ws/jbossws-jboss510-metadata
soverride = override.getServlets();
if(original != null)
soriginal = original.getServlets();
servlets = JBossServletsMetaData.merge(soverride, soriginal);
代码示例来源:origin: org.jboss.metadata/jboss-metadata-war
soverride = override.getServlets();
if(original != null)
soriginal = original.getServlets();
servlets = JBossServletsMetaData.merge(soverride, soriginal);
代码示例来源:origin: org.jboss.metadata/jboss-metadata-web
soverride = override.getServlets();
if (original != null)
soriginal = original.getServlets();
dest.setServlets(JBossServletsMetaDataMerger.merge(soverride, soriginal));
内容来源于网络,如有侵权,请联系作者删除!