Support @WithStateMachine as meta annotation

- Remove explicit check for @Component in favour of
  @WithStateMachine which makes it more logical to
  check meta annotations.
- Fixes #179
This commit is contained in:
Janne Valkealahti
2016-03-02 10:01:09 +00:00
parent 008316f434
commit 8b560f5bba
5 changed files with 156 additions and 30 deletions

View File

@@ -831,6 +831,14 @@ application context by using annotation `name` field.
include::samples/DocsConfigurationSampleTests4.java[tags=snippetAA]
----
_@WithStateMachine_ can also be used as a meta-annotation as shown
above. In this case you could annotate your bean with _WithMyBean_.
[source,java,indent=0]
----
include::samples/DocsConfigurationSampleTests4.java[tags=snippetAAA]
----
[NOTE]
====
Return type of these methods doesn't matter and is effectively