Fluxtion generator will inject vector properties into the SEP at runtime. The properties are read during generation and the SEP will have the vector values hard-coded in the generated file. Using property injection client code can inject either default values or constant values into the SEP.
Property type support
The supported types that can be injected into a SEP member are:
Managed node references
byte
char
short
int
float
long
double
String
Enum
Collection support
The following collections are supported for injection:
Arrays
java.util.List
Injection mechanism
The following access patterns for property injection are supported:
Example
The example demonstrates contstructor, public fields and bean pattern injection for arrays and Lists. The code generated depends upon the context of the injection.
Fluxtion will look for a read/write bean pattern and generate a setXXX call in the SEP with a locally generated array or List
Final fields
A constructor must be available that matches exactly the final fields. If one exists Fluxtion will generate the constructor call, with a locally generated array or List.
public fields
Public fields are values are written in the generated SEP. The field must
non-transient, public scope and mutable. Fluxtion will assign a locally generated array or List