Step class structure
Steps classes contain a set of injected variables followed by a set of step method definitions.
The @Export annotation
The base configuration step classes start with an @Export annotation. This is an internal Guidewire annotation that allows a file to be editable in Studio. You do not need to include this annotation in any custom Step classes.
Injected dependencies
The @Inject annotation identifies a dependency that is being injected into the steps class. All step classes require the following dependency:
@Inject
var _contextFactory : ContextFactory
This code makes the Context Factory dependency object available to each step method definition. The method definitions uses this object to invoke the appropriate context API and call the appropriate method on that API.
Some step classes include additional injected dependencies. For example, RatingSteps also includes:
@Inject
var _policyPeriod : PolicyPeriodWrapper
The remainder of the class is a list of step method definitions.
