@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Subscribe
@Subscribe
public void onSomeEvent(SomeEvent event) { ... }
Because the method argument is declared as a SomeEvent type, the method will be called by the event
dispatcher whenever a SomeEvent instance (or one of its subclass instances that is not already registered)
is published.Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.