Interface FactoryMethod
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
FactoryMethod.BuilderBase.FactoryMethodImpl
Static factory method metadata used by builder code generation.
Such methods can be used to map from configuration to a type, or from a prototype to a third party runtime-type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forFactoryMethod.static classFactoryMethod.BuilderBase<BUILDER extends FactoryMethod.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends FactoryMethod>Fluent API builder base forFactoryMethod. -
Method Summary
Modifier and TypeMethodDescriptionstatic FactoryMethod.Builderbuilder()Create a new fluent API builder to customize configuration.static FactoryMethod.Builderbuilder(FactoryMethod instance) Create a new fluent API builder from an existing instance.Type declaring the factory method.Name of the factory method.A factory method may be bound to a specific option.A parameter of the factory method, if any.Return type of the factory method.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
declaringType
TypeName declaringType()Type declaring the factory method.- Returns:
- type declaring the factory method
-
returnType
-
methodName
-
parameterType
-
optionName
-