|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.Sequencers
@Immutable public class Sequencers
Component that manages the library of sequencers configured for a repository. Simply instantiate, and register as a
listener
of cache changes.
This class keeps a cache of the SequencerPathExpression
instances (and the corresponding Sequencer
implementation) for each workspace. This is so that it's much easier and more efficient to process the events, which happens
very frequently. Also, that structure is a bit backward compared to how the sequencers are defined in the configuration.
Nested Class Summary | |
---|---|
protected class |
Sequencers.SequencingConfiguration
This class represents a single SequencerPathExpression and the corresponding Sequencer implementation that
should be used if the path expression matches. |
protected static class |
Sequencers.SequencingContext
|
static class |
Sequencers.SequencingWorkItem
|
static interface |
Sequencers.WorkQueue
|
Constructor Summary | |
---|---|
Sequencers(JcrRepository.RunningState repository,
Collection<RepositoryConfiguration.Component> components,
Iterable<String> workspaceNames,
Sequencers.WorkQueue workQueue)
|
Method Summary | |
---|---|
protected Set<SequencerPathExpression> |
buildPathExpressionSet(Sequencer sequencer)
|
Sequencer |
getSequencer(UUID id)
|
protected void |
initialize()
|
boolean |
isEmpty()
Determine if there are no sequencers configured. |
void |
notify(ChangeSet changeSet)
This method is called when changes are persisted to the repository. |
protected void |
shutdown()
|
protected RepositoryStatistics |
statistics()
|
protected ValueFactory<String> |
stringFactory()
|
protected void |
submitWork(Sequencers.SequencingConfiguration sequencingConfig,
SequencerPathExpression.Matcher matcher,
String inputWorkspaceName,
String propertyName,
String userId)
|
protected Sequencers |
with(JcrRepository.RunningState repository)
|
protected void |
workspaceAdded(String workspaceName)
Signal that a new workspace was added. |
protected void |
workspaceRemoved(String workspaceName)
Signal that a new workspace was removed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequencers(JcrRepository.RunningState repository, Collection<RepositoryConfiguration.Component> components, Iterable<String> workspaceNames, Sequencers.WorkQueue workQueue)
Method Detail |
---|
protected Sequencers with(JcrRepository.RunningState repository)
protected void initialize()
public boolean isEmpty()
protected void workspaceAdded(String workspaceName)
workspaceName
- the workspace name; may not be nullprotected void workspaceRemoved(String workspaceName)
workspaceName
- the workspace name; may not be nullprotected final ValueFactory<String> stringFactory()
protected final void shutdown()
protected final RepositoryStatistics statistics()
protected void submitWork(Sequencers.SequencingConfiguration sequencingConfig, SequencerPathExpression.Matcher matcher, String inputWorkspaceName, String propertyName, String userId)
public Sequencer getSequencer(UUID id)
protected Set<SequencerPathExpression> buildPathExpressionSet(Sequencer sequencer) throws InvalidSequencerPathExpression
InvalidSequencerPathExpression
public void notify(ChangeSet changeSet)
notify
in interface ChangeSetListener
changeSet
- the changes
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |