Skip to content

Allow to use generic qualifiers for statemachine factory #306

Closed
@tarioch

Description

@tarioch

We already have generics on StateMachineConfigurerAdaptor. It should be possible to use those as qualifiers instead of having to set different names and use the string names as qualifiers.

With this we would no longer need to do
@EnableStateMachineFactory(name="Foo")

And use would be instead of

@Autowired
@Qualifier("Foo")
private StateMachineFactory<MyState, MyEvent> myFooMachine;

@Autowired
@Qualifier("Bar")
private StateMachineFactory<MyBarState, MyBarEvent> myBarMachine;

it would be

@Autowired
private StateMachineFactory<MyState, MyEvent> myFooMachine;

@Autowired
private StateMachineFactory<MyBarState, MyBarEvent> myBarMachine;

As they have different generics

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions