private final boolean enabledSemanticVersions;
- public BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
+ BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
final StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
super();
this.supports = Preconditions.checkNotNull(supports, "BuildGlobalContext#supports cannot be null");
Preconditions.checkNotNull(isFeatureSupported, "Supported feature predicate must not be null."));
}
- public BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
+ BuildGlobalContext(final Map<ModelProcessingPhase, StatementSupportBundle> supports,
final Map<ValidationBundleType, Collection<?>> supportedValidation,
final StatementParserMode statementParserMode, final Predicate<QName> isFeatureSupported) {
super();
Preconditions.checkNotNull(isFeatureSupported, "Supported feature predicate must not be null."));
}
- public boolean isEnabledSemanticVersioning() {
+ boolean isEnabledSemanticVersioning() {
return enabledSemanticVersions;
}
- public StatementSupportBundle getSupportsForPhase(final ModelProcessingPhase currentPhase) {
+ StatementSupportBundle getSupportsForPhase(final ModelProcessingPhase currentPhase) {
return supports.get(currentPhase);
}
- public void addSource(@Nonnull final StatementStreamSource source) {
+ void addSource(@Nonnull final StatementStreamSource source) {
sources.add(new SourceSpecificContext(this, source));
}
return new SimpleNamespaceContext<>(potentialRaw);
}
- public StatementDefinitionContext<?, ?, ?> getStatementDefinition(final QName name) {
+ StatementDefinitionContext<?, ?, ?> getStatementDefinition(final QName name) {
StatementDefinitionContext<?, ?, ?> potential = definitions.get(name);
if (potential == null) {
final StatementSupport<?, ?, ?> potentialRaw = supports.get(currentPhase).getStatementDefinition(name);
return potential;
}
- public EffectiveModelContext build() throws SourceException, ReactorException {
+ EffectiveModelContext build() throws SourceException, ReactorException {
for (final ModelProcessingPhase phase : PHASE_EXECUTION_ORDER) {
startPhase(phase);
loadPhaseStatements();
return new EffectiveModelContext(rootStatements);
}
- public EffectiveSchemaContext buildEffective() throws ReactorException {
+ EffectiveSchemaContext buildEffective() throws ReactorException {
for (final ModelProcessingPhase phase : PHASE_EXECUTION_ORDER) {
startPhase(phase);
loadPhaseStatements();
source.startPhase(phase);
}
currentPhase = phase;
+ LOG.debug("Global phase {} started", phase);
}
private void loadPhaseStatements() throws ReactorException {
private void endPhase(final ModelProcessingPhase phase) {
Preconditions.checkState(currentPhase == phase);
finishedPhase = currentPhase;
+ LOG.debug("Global phase {} finished", phase);
}
- public Set<SourceSpecificContext> getSources() {
+ Set<SourceSpecificContext> getSources() {
return sources;
}
}