Questo contenuto non è disponibile nella lingua selezionata.
6.3. Configuring a CND Sequencer
Include the relevant libraries
Includemodeshape-sequencer-cnd-VERSION.jarin your application.Choose one of the following for sequencing configuration
- Define sequencing configuration based on standard example provided in
SOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xml:<mode:sequencer jcr:name="CND File Sequencer" mode:classname="org.modeshape.sequencer.cnd.CndSequencer"> <mode:description> Sequences CND files loaded under '/files', extracting the contained node type definitions. </mode:description> <mode:pathExpression> eds-store:default:/files(//(*.cnd[*]))/jcr:content[@jcr:data] => eds-store:default:/sequenced/cnd/$1 </mode:pathExpression> </mode:sequencer> - Configure via
org.modeshape.jcr.JcrConfiguration:JcrConfiguration config = ... config.sequencer("CND File Sequencer") .usingClass("org.modeshape.sequencer.cnd.CndSequencer") .loadedFromClasspath() .setDescription("Sequences CND files loaded under '/files', extracting the contained node type definitions.") .sequencingFrom("/files(//(*.cnd[*]))/jcr:content[@jcr:data]") .andOutputtingTo("/sequenced/cnd/$1");
Note
Refer toSOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xmlfor more information.