Package io.cucumber.java8
Class Java8Backend
java.lang.Object
io.cucumber.java8.Java8Backend
- All Implemented Interfaces:
Backend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Containerprivate @Nullable ClosureAwareGlueRegistryprivate final Lookupprivate final GlueDiscoverySelectorResolver -
Constructor Summary
ConstructorsConstructorDescriptionJava8Backend(Lookup lookup, Container container, Supplier<ClassLoader> classLoaderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked before a new scenario starts.voidInvoked at the end of a scenario, after hooksprivate static booleanisInstantiable(Class<?> clazz) private static booleanisInstantiableLambdaGlue(Class<?> aClass) private static booleanisSubClassOfLambdaGlue(Class<?> aClass) voidloadGlue(Glue glue, GlueDiscoveryRequest request) Invoked once before all features.
-
Field Details
-
lookup
-
container
-
resolver
-
lambdaGlueClasses
-
glue
-
-
Constructor Details
-
Java8Backend
Java8Backend(Lookup lookup, Container container, Supplier<ClassLoader> classLoaderSupplier)
-
-
Method Details
-
loadGlue
Description copied from interface:BackendInvoked once before all features. This is where steps and hooks should be loaded. -
buildWorld
public void buildWorld()Description copied from interface:BackendInvoked before a new scenario starts. Implementations should do any necessary setup of new, isolated state here. Additional scenario scoped step definitions can be loaded here. These step definitions should implementScenarioScoped- Specified by:
buildWorldin interfaceBackend
-
disposeWorld
public void disposeWorld()Description copied from interface:BackendInvoked at the end of a scenario, after hooks- Specified by:
disposeWorldin interfaceBackend
-
getSnippet
- Specified by:
getSnippetin interfaceBackend
-
isInstantiableLambdaGlue
-
isSubClassOfLambdaGlue
-
isInstantiable
-