Wildcard packages defined in eventPackages do not resolve mediated events in child packages

Description

I guess this must have been the case for a while, but someone on the list mentioned it and I have tested. I know that at one point defining an eventPackage as:

"com.foo.event.*"

would handle events in subpackages (such as "com.foo.event.store.*"), but this doesn't work any more.

Looking at the source, I imagine this happened before the module support/domain was added and before the full reflection classes were created. But unless there's some trick I'm not aware of, there is no way to get a fully qualified class name from only the raw class name (no package), and no way to create a Class instance from only the raw name. And since all we have when resolving event name/constant in a mediator is the raw class name, I see no way to reconcile the gap between the ".*" syntax for eventPackages and the raw class name.

So the solution here may simply be to change the docs to state that the full package paths are required when specifying eventPackages.

Environment

None

Status

Assignee

ChrisC

Reporter

Brian Kotek

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure