diff --git a/bundles/org.eclipse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/AccessCycleConfiguration.java b/bundles/org.eclipse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/AccessCycleConfiguration.java index 95f4573ad..45037e0fa 100644 --- a/bundles/org.eclipse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/AccessCycleConfiguration.java +++ b/bundles/org.eclipse.passage.lic.api/src/org/eclipse/passage/lic/internal/api/AccessCycleConfiguration.java @@ -43,6 +43,6 @@ public interface AccessCycleConfiguration { ExpressionEvaluatorsRegistry expressionEvaluators(); - ExpressionTokenAssessorsRegistry tokenEvaluators(); + ExpressionTokenAssessorsRegistry expressionAssessors(); } diff --git a/bundles/org.eclipse.passage.seal.demo/src/org/eclipse/passage/seal/internal/demo/SealedAccessCycleConfiguration.java b/bundles/org.eclipse.passage.seal.demo/src/org/eclipse/passage/seal/internal/demo/SealedAccessCycleConfiguration.java index b340d0832..7ee284be1 100644 --- a/bundles/org.eclipse.passage.seal.demo/src/org/eclipse/passage/seal/internal/demo/SealedAccessCycleConfiguration.java +++ b/bundles/org.eclipse.passage.seal.demo/src/org/eclipse/passage/seal/internal/demo/SealedAccessCycleConfiguration.java @@ -105,7 +105,7 @@ final class SealedAccessCycleConfiguration implements AccessCycleConfiguration { emitters = new ReadOnlyRegistry<>(Arrays.asList(// new BasePermissionEmittingService(// expressionParsers(), // - tokenEvaluators(), // + expressionAssessors(), // expressionEvaluators())// )); expressionParsers = new ReadOnlyRegistry<>(Arrays.asList(// @@ -164,7 +164,7 @@ public ExpressionEvaluatorsRegistry expressionEvaluators() { } @Override - public ExpressionTokenAssessorsRegistry tokenEvaluators() { + public ExpressionTokenAssessorsRegistry expressionAssessors() { return () -> tokenEvaluators; } diff --git a/tests/org.eclipse.passage.lic.api.tests/src/org/eclipse/passage/lic/api/tests/FrameworkContractTest.java b/tests/org.eclipse.passage.lic.api.tests/src/org/eclipse/passage/lic/api/tests/FrameworkContractTest.java index d8e512d7b..d979ef2d2 100644 --- a/tests/org.eclipse.passage.lic.api.tests/src/org/eclipse/passage/lic/api/tests/FrameworkContractTest.java +++ b/tests/org.eclipse.passage.lic.api.tests/src/org/eclipse/passage/lic/api/tests/FrameworkContractTest.java @@ -193,17 +193,17 @@ public final void hasEvaluatorForDefaultExpressionFormat() { @Test @Ignore // yet to be implemented (OSHI-based) public final void canAssessConditionExpressionsSegment() { - assertServiceRegistryIsFunctional(config().tokenEvaluators().get()); + assertServiceRegistryIsFunctional(config().expressionAssessors().get()); } @Test public final void prohibitsExpressionSegmentAssessmentServicesExtension() { - assertTrue(readOnly(config().tokenEvaluators().get())); + assertTrue(readOnly(config().expressionAssessors().get())); } @Test public final void prohibitsInjectionIntoSegmentAssessmentServices() { - assertServiceInjectionsIsProhibited(config().tokenEvaluators().get(), + assertServiceInjectionsIsProhibited(config().expressionAssessors().get(), new FakeExpressionTokenAssessmentService()); } diff --git a/tests/org.eclipse.passage.lic.base.tests/src/org/eclipse/passage/lic/internal/base/tests/requirements/SabotagedFramework.java b/tests/org.eclipse.passage.lic.base.tests/src/org/eclipse/passage/lic/internal/base/tests/requirements/SabotagedFramework.java index f895ee892..265f7b4e1 100644 --- a/tests/org.eclipse.passage.lic.base.tests/src/org/eclipse/passage/lic/internal/base/tests/requirements/SabotagedFramework.java +++ b/tests/org.eclipse.passage.lic.base.tests/src/org/eclipse/passage/lic/internal/base/tests/requirements/SabotagedFramework.java @@ -94,7 +94,7 @@ public ExpressionEvaluatorsRegistry expressionEvaluators() { } @Override - public ExpressionTokenAssessorsRegistry tokenEvaluators() { + public ExpressionTokenAssessorsRegistry expressionAssessors() { return () -> noService(); }