本文整理汇总了Java中org.apache.commons.configuration.MapConfiguration.setDelimiterParsingDisabled方法的典型用法代码示例。如果您正苦于以下问题:Java MapConfiguration.setDelimiterParsingDisabled方法的具体用法?Java MapConfiguration.setDelimiterParsingDisabled怎么用?Java MapConfiguration.setDelimiterParsingDisabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.configuration.MapConfiguration
的用法示例。
在下文中一共展示了MapConfiguration.setDelimiterParsingDisabled方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testList
import org.apache.commons.configuration.MapConfiguration; //导入方法依赖的package包/类
@Test
public void testList() {
Properties props = new Properties();
props.setProperty("a", "${b.1},${d}");
props.setProperty("b.1", "4,5,6,${c}");
props.setProperty("c", "1,2,3");
props.setProperty("d", "7,8,9");
MapConfiguration mapConfig = new MapConfiguration(props);
mapConfig.setDelimiterParsingDisabled(true);
ConcurrentCompositeConfiguration config = new ConcurrentCompositeConfiguration();
config.addConfiguration(mapConfig);
config.addConfiguration(new MapConfiguration(new Properties()));
assertEquals("4,5,6,1,2,3,7,8,9", config.getString("a"));
ConfigurationBackedDynamicPropertySupportImpl impl = new ConfigurationBackedDynamicPropertySupportImpl(config);
assertEquals("4,5,6,1,2,3,7,8,9", impl.getString("a"));
}
示例2: ProgramVertexProgramStep
import org.apache.commons.configuration.MapConfiguration; //导入方法依赖的package包/类
public ProgramVertexProgramStep(final Traversal.Admin traversal, final VertexProgram vertexProgram) {
super(traversal);
this.configuration = new HashMap<>();
final MapConfiguration base = new MapConfiguration(this.configuration);
base.setDelimiterParsingDisabled(true);
vertexProgram.storeState(base);
this.toStringOfVertexProgram = vertexProgram.toString();
}
示例3: generateProgram
import org.apache.commons.configuration.MapConfiguration; //导入方法依赖的package包/类
@Override
public VertexProgram generateProgram(final Graph graph, final Memory memory) {
final MapConfiguration base = new MapConfiguration(this.configuration);
base.setDelimiterParsingDisabled(true);
PureTraversal.storeState(base, ROOT_TRAVERSAL, TraversalHelper.getRootTraversal(this.getTraversal()).clone());
base.setProperty(STEP_ID, this.getId());
if (memory.exists(TraversalVertexProgram.HALTED_TRAVERSERS))
TraversalVertexProgram.storeHaltedTraversers(base, memory.get(TraversalVertexProgram.HALTED_TRAVERSERS));
return VertexProgram.createVertexProgram(graph, base);
}
示例4: ProgramVertexProgramStep
import org.apache.commons.configuration.MapConfiguration; //导入方法依赖的package包/类
public ProgramVertexProgramStep(final Traversal.Admin traversal, final VertexProgram vertexProgram) {
super(traversal);
this.configuration = new HashMap<>();
final MapConfiguration base = new MapConfiguration(this.configuration);
base.setDelimiterParsingDisabled(true);
vertexProgram.storeState(base);
this.toStringOfVertexProgram = vertexProgram.toString();
this.traverserRequirements = vertexProgram.getTraverserRequirements();
}