- Type Parameters:
T- type of the runtime object (such asRetryin the description above)
- Enclosing class:
Prototype
public static interface Prototype.Factory<T>
A prototype
Prototype.Blueprint may extend this interface
to explicitly reference the associated runtime type.
For example a RetryPrototypeBlueprint that extends a Prototype.Factory
of Retry, will add methods to the prototype interface and builder to build an instance of
Retry directly.
A factory method must exist either on the runtime type (such as Retry) with signature
static Retry create(RetryPrototype), or on the prototype blueprint.
-
Method Summary
-
Method Details
-
build
T build()Create a new instance of the runtime type from this config object.- Returns:
- new configured runtime instance
-