Class FluentObjectFactory

  • All Implemented Interfaces:
    io.cucumber.core.backend.Container, io.cucumber.core.backend.Lookup, io.cucumber.core.backend.ObjectFactory

    public class FluentObjectFactory
    extends Object
    implements io.cucumber.core.backend.ObjectFactory
    It is an object factory for creating Cucumber steps objects in FluentLenium injection container.

    It also configures a config class which is either a subclass of FluentCucumberTest annotated with @FluentConfiguration, or if there is no such class, then sets it as null.

    Since a FluentLenium configuration can be configured not only via the FluentConfiguration annotation but in other ways too, the config class can be null if there is no annotated class.

    • Constructor Detail

      • FluentObjectFactory

        public FluentObjectFactory()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface io.cucumber.core.backend.ObjectFactory
      • stop

        public void stop()
        Specified by:
        stop in interface io.cucumber.core.backend.ObjectFactory
      • addClass

        public boolean addClass​(Class<?> aClass)
        Specified by:
        addClass in interface io.cucumber.core.backend.Container
      • getInstance

        public <T> T getInstance​(Class<T> type)
        Specified by:
        getInstance in interface io.cucumber.core.backend.Lookup