public <T> T getNewStepLibraryFor(final Class<T> scenarioStepsClass) { if (isStepLibraryInstantiatedFor(scenarioStepsClass)) { return getManagedStepLibraryFor(scenarioStepsClass); } else { return instantiateNewStepLibraryFor(scenarioStepsClass); } }
/** * Returns a new ScenarioSteps instance, of the specified type. * This is actually a proxy that allows reporting and screenshots to * be performed at each step. */ public <T> T getStepLibraryFor(final Class<T> scenarioStepsClass) { if (isStepLibraryInstantiatedFor(scenarioStepsClass)) { return getManagedStepLibraryFor(scenarioStepsClass); } else { return instantiateNewStepLibraryFor(scenarioStepsClass); } }
public <T> T getNewStepLibraryFor(final Class<T> scenarioStepsClass) { if (isStepLibraryInstantiatedFor(scenarioStepsClass)) { return getManagedStepLibraryFor(scenarioStepsClass); } else { return instantiateNewStepLibraryFor(scenarioStepsClass); } }
/** * Returns a new ScenarioSteps instance, of the specified type. * This is actually a proxy that allows reporting and screenshots to * be performed at each step. * * @param scenarioStepsClass the scenario step class * @param <T> the scenario step class type * @return the instrumented step library */ public <T> T getSharedStepLibraryFor(final Class<T> scenarioStepsClass) { if (isStepLibraryInstantiatedFor(scenarioStepsClass)) { return getStepLibraryFromCacheFor(scenarioStepsClass); } else { return getNewCachedStepLibraryFor(scenarioStepsClass); } }
/** * Returns a new ScenarioSteps instance, of the specified type. * This is actually a proxy that allows reporting and screenshots to * be performed at each step. * @param scenarioStepsClass the scenario step class * @param <T> the scenario step class type * @return the instrumented step library */ public <T> T getStepLibraryFor(final Class<T> scenarioStepsClass) { if (isStepLibraryInstantiatedFor(scenarioStepsClass)) { return getManagedStepLibraryFor(scenarioStepsClass); } else { return instantiateNewStepLibraryFor(scenarioStepsClass); } }