Class SerenityObjectFactory

java.lang.Object
cucumber.runtime.SerenityObjectFactory
All Implemented Interfaces:
io.cucumber.core.backend.Container, io.cucumber.core.backend.Lookup, io.cucumber.core.backend.ObjectFactory

public class SerenityObjectFactory
extends java.lang.Object
implements io.cucumber.core.backend.ObjectFactory
Serenity factory for cucumber tests.
Author:
Liviu Carausu (liviu.carausu@gmail.com).
  • Constructor Summary

    Constructors 
    Constructor Description
    SerenityObjectFactory()  
  • Method Summary

    Modifier and Type Method Description
    boolean addClass​(java.lang.Class<?> glueClass)  
    <T> T getInstance​(java.lang.Class<T> type)  
    void start()  
    void stop()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SerenityObjectFactory

      public SerenityObjectFactory()
  • Method Details

    • 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​(java.lang.Class<?> glueClass)
      Specified by:
      addClass in interface io.cucumber.core.backend.Container
    • getInstance

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