Class ShapeDefFunctionalFactory<W,D extends org.kie.workbench.common.stunner.core.definition.shape.ShapeDef,S extends org.kie.workbench.common.stunner.core.client.shape.Shape>
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.shape.factory.ShapeDefFunctionalFactory<W,D,S>
-
- All Implemented Interfaces:
org.kie.workbench.common.stunner.core.client.shape.factory.ShapeDefFactory<W,D,S>
@Dependent public class ShapeDefFunctionalFactory<W,D extends org.kie.workbench.common.stunner.core.definition.shape.ShapeDef,S extends org.kie.workbench.common.stunner.core.client.shape.Shape> extends Object implements org.kie.workbench.common.stunner.core.client.shape.factory.ShapeDefFactory<W,D,S>
A shape definition factory that can be aggregated by other shape definition factories and allows setting a factory (functional) interface for each Shape Definition type. This functional interface is the responsible * for creating the shape instance as for the given definition and shape definition instances.
-
-
Constructor Summary
Constructors Constructor Description ShapeDefFunctionalFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()SnewShape(W instance, D shapeDef)protected SnewShape(W instance, D shapeDef, Class<? extends D> shapeDefType)ShapeDefFunctionalFactory<W,D,S>set(Class<? extends D> shapeDefType, BiFunction<W,D,S> shapeBuilderFunction)Sets the factory function for the specified Shape Definition type.
-
-
-
Method Detail
-
set
public ShapeDefFunctionalFactory<W,D,S> set(Class<? extends D> shapeDefType, BiFunction<W,D,S> shapeBuilderFunction)
Sets the factory function for the specified Shape Definition type.
-
destroy
@PreDestroy public void destroy()
-
-