本文整理了Java中org.milyn.container.ExecutionContext.getDeliveryConfig()
方法的一些代码示例,展示了ExecutionContext.getDeliveryConfig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecutionContext.getDeliveryConfig()
方法的具体详情如下:
包路径:org.milyn.container.ExecutionContext
类名称:ExecutionContext
方法名:getDeliveryConfig
[英]Get the content delivery configuration for the profile set at which this context is targeted.
[中]获取此上下文所针对的配置文件集的内容交付配置。
代码示例来源:origin: org.milyn/milyn-smooks-javabean
private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException {
return getDecoder(executionContext.getDeliveryConfig());
}
代码示例来源:origin: smooks/smooks
private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException {
return getDecoder(executionContext.getDeliveryConfig());
}
代码示例来源:origin: smooks/smooks
public AbstractParser(ExecutionContext execContext) {
this(execContext, getSAXParserConfiguration(execContext.getDeliveryConfig()));
}
代码示例来源:origin: org.virtuslab/milyn-smooks-core
public SmooksSAXFilter(ExecutionContext executionContext) {
this.executionContext = executionContext;
closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
parser = new SAXParser(executionContext);
}
代码示例来源:origin: org.milyn/milyn-smooks-all
private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException {
@SuppressWarnings("unchecked")
List decoders = executionContext.getDeliveryConfig().getObjects("decoder:" + typeAlias);
if (decoders == null || decoders.isEmpty()) {
decoder = DataDecoder.Factory.create(typeAlias);
} else if (!(decoders.get(0) instanceof DataDecoder)) {
throw new DataDecodeException("Configured decoder '" + typeAlias + ":" + decoders.get(0).getClass().getName() + "' is not an instance of " + DataDecoder.class.getName());
} else {
decoder = (DataDecoder) decoders.get(0);
}
return decoder;
}
代码示例来源:origin: org.milyn/milyn-smooks-all
public SmooksSAXFilter(ExecutionContext executionContext) {
this.executionContext = executionContext;
closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
parser = new SAXParser(executionContext);
}
代码示例来源:origin: smooks/smooks
public SmooksSAXFilter(ExecutionContext executionContext) {
this.executionContext = executionContext;
closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
parser = new SAXParser(executionContext);
}
代码示例来源:origin: org.milyn/milyn-smooks-core
public SmooksSAXFilter(ExecutionContext executionContext) {
this.executionContext = executionContext;
closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig());
closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig());
parser = new SAXParser(executionContext);
}
代码示例来源:origin: org.milyn/milyn-smooks-core
private void initialiseEmptyElements() {
DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD();
if(dtd != null) {
String[] emptyEls = dtd.getEmptyElements();
if(emptyEls != null && emptyEls.length > 0) {
Collections.addAll(emptyElements, emptyEls);
}
}
}
代码示例来源:origin: org.milyn/milyn-smooks-all
private void initialiseEmptyElements() {
DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD();
if(dtd != null) {
String[] emptyEls = dtd.getEmptyElements();
if(emptyEls != null && emptyEls.length > 0) {
Collections.addAll(emptyElements, emptyEls);
}
}
}
代码示例来源:origin: smooks/smooks
private void initialiseEmptyElements() {
DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD();
if(dtd != null) {
String[] emptyEls = dtd.getEmptyElements();
if(emptyEls != null && emptyEls.length > 0) {
Collections.addAll(emptyElements, emptyEls);
}
}
}
代码示例来源:origin: org.virtuslab/milyn-smooks-core
private void initialiseEmptyElements() {
DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD();
if(dtd != null) {
String[] emptyEls = dtd.getEmptyElements();
if(emptyEls != null && emptyEls.length > 0) {
for(int i = 0; i < emptyEls.length; i++) {
emptyElements.add(emptyEls[i]);
}
}
}
}
代码示例来源:origin: org.milyn/milyn-smooks-all
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) {
super(execContext, parentContentHandler);
this.execContext = execContext;
initialiseEmptyElements();
rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig());
}
代码示例来源:origin: org.milyn/milyn-smooks-core
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) {
super(execContext, parentContentHandler);
this.execContext = execContext;
initialiseEmptyElements();
rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig());
}
代码示例来源:origin: smooks/smooks
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) {
super(execContext, parentContentHandler);
this.execContext = execContext;
initialiseEmptyElements();
rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig());
}
代码示例来源:origin: org.virtuslab/milyn-smooks-core
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) {
super(execContext, parentContentHandler);
this.execContext = execContext;
initialiseEmptyElements();
rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig());
}
代码示例来源:origin: org.milyn/milyn-smooks-templating
public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException {
if(getOutputStreamResource() == null) {
if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) {
if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) {
targetWriter.onChildText(element, childText, executionContext);
}
}
}
}
代码示例来源:origin: org.milyn/milyn-smooks-templating
public void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext) throws SmooksException, IOException {
if(getOutputStreamResource() == null) {
if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) {
if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) {
targetWriter.onChildElement(element, childElement, executionContext);
}
}
}
}
代码示例来源:origin: org.milyn/milyn-smooks-all
public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException {
if(getOutputStreamResource() == null) {
if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) {
if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) {
targetWriter.onChildText(element, childText, executionContext);
}
}
}
}
代码示例来源:origin: org.milyn/milyn-smooks-all
public void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext) throws SmooksException, IOException {
if(getOutputStreamResource() == null) {
if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) {
if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) {
targetWriter.onChildElement(element, childElement, executionContext);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!