本文整理了Java中org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder.<init>()
方法的一些代码示例,展示了XMLPrimitiveAssertionBuilder.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPrimitiveAssertionBuilder.<init>()
方法的具体详情如下:
包路径:org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder
类名称:XMLPrimitiveAssertionBuilder
方法名:<init>
暂无
代码示例来源:origin: org.apache.neethi/neethi
public AssertionBuilderFactoryImpl(PolicyBuilder eng, ConverterRegistry reg) {
engine = eng;
if (reg == null) {
throw new IllegalArgumentException("ConverterRegistry must not be null");
}
converters = reg;
for (AssertionBuilder<?> builder : Service.providers(AssertionBuilder.class)) {
QName[] knownElements = builder.getKnownElements();
for (int i = 0; i < knownElements.length; i++) {
registeredBuilders.put(knownElements[i], builder);
}
}
defaultBuilder = new XMLPrimitiveAssertionBuilder();
}
代码示例来源:origin: apache/cxf
protected AssertionBuilder<?> handleNoRegisteredBuilder(QName qname) {
if (ignoreUnknownAssertions) {
boolean alreadyWarned = ignored.contains(qname);
if (!alreadyWarned) {
ignored.add(qname);
Message m = new Message("NO_ASSERTIONBUILDER_EXC", BUNDLE, qname.toString());
LOG.warning(m.toString());
}
return new XMLPrimitiveAssertionBuilder();
}
Message m = new Message("NO_ASSERTIONBUILDER_EXC", BUNDLE, qname.toString());
throw new PolicyException(m);
}
代码示例来源:origin: org.apache.cxf/cxf-rt-ws-policy
protected AssertionBuilder<?> handleNoRegisteredBuilder(QName qname) {
if (ignoreUnknownAssertions) {
boolean alreadyWarned = ignored.contains(qname);
if (!alreadyWarned) {
ignored.add(qname);
Message m = new Message("NO_ASSERTIONBUILDER_EXC", BUNDLE, qname.toString());
LOG.warning(m.toString());
}
return new XMLPrimitiveAssertionBuilder();
}
Message m = new Message("NO_ASSERTIONBUILDER_EXC", BUNDLE, qname.toString());
throw new PolicyException(m);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-ws-axis2
private static void buildAssertionBuilders() {
// Get the current context class loader
ClassLoader originalCL = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(NeethiPolicyApplier.class.getClassLoader());
QName XML_ASSERTION_BUILDER = new QName("http://test.org/test", "test");
Iterator<AssertionBuilder> asseryionBuilders = ServiceRegistry.lookupProviders(AssertionBuilder.class);
while (asseryionBuilders.hasNext()) {
AssertionBuilder builder = asseryionBuilders.next();
for (QName knownElement : builder.getKnownElements()) {
PolicyEngine.registerBuilder(knownElement, builder);
}
}
PolicyEngine.registerBuilder(XML_ASSERTION_BUILDER, new XMLPrimitiveAssertionBuilder());
} finally {
// Change class loader back to what it was !!
Thread.currentThread().setContextClassLoader(originalCL);
}
}
内容来源于网络,如有侵权,请联系作者删除!