- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
FactoryMethod.BuilderBase.FactoryMethodImpl
Some static methods on custom methods (and deprecated option on the blueprint itself)
may be annotated with
Prototype.FactoryMethod.
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
TypeName returnType()Return type of the factory method.- Returns:
- return type of the factory method
-
methodName
String methodName()Name of the factory method.- Returns:
- factory method name
-
parameterType
A parameter of the factory method, if any.- Returns:
- parameter type, if any
-
optionName
A factory method may be bound to a specific option.- Returns:
- name of the option this factory method is bound to, if any
-