Each sequencer is expected to process the value of the property, extract information from the value, and write a structured representation (in the form of a node or a subgraph of nodes) using the supplied output node. Note that the output node will either be:
The implementation is expected to always clean up all resources that it acquired, even in the case of exceptions.
Note: This method must be threadsafe: ModeShape will likely invoke this method concurrently in separate threads, and the method should never modify the state or fields of the Sequencer implementation class. All initialization should be performed in {@link #initialize(NamespaceRegistry,NodeTypeManager)}.
@param inputProperty the property that was changed and that should be used as the input; never null @param outputNode the node that represents the output for the derived information; never null, and will either be{@link Node#isNew() new} if the output is being placed outside of the selected node, or will not be new when theoutput is to be placed on the selected input node @param context the context in which this sequencer is executing, and which may contain additional parameters useful whengenerating the output structure; never null @return true if the sequencer's output should be saved, or false otherwise @throws Exception if there was a problem with the sequencer that could not be handled. All exceptions will be loggedautomatically as errors by ModeShape.
|
|
|
|