ModeShape Distribution 3.0.0.Beta4

Interface SourceFileRecorder

All Known Implementing Classes:

public interface SourceFileRecorder

A simple interface that allows an implementer to control how Java source file metadata is mapped to properties (including primary and mixin types) in the graph.

Implementations of this class must provide a public, no-argument constructor.

To use, supply the implementation class name to a JavaFileSequencer object. Each instance will be reused for multiple JavaFileSequencer.execute(javax.jcr.Property, javax.jcr.Node, org.modeshape.jcr.api.sequencer.Sequencer.Context) sequence calls , so implementations of this interface must be thread-safe.

Method Summary
 void record(Sequencer.Context context, Node outputNode, JavaMetadata javaMetadata)
          Records a source file.

Method Detail


void record(Sequencer.Context context,
            Node outputNode,
            JavaMetadata javaMetadata)
            throws RepositoryException
Records a source file.

context - the sequencer context
outputNode - the Node output
javaMetadata - the metadata for the Java source file
RepositoryException - if anything fails during the sequencing process

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.