Can triggers be assigned to arbitrary capabilities or only by actual packages?

All the docs I have read give me the impression that triggers are only triggered by packages and not arbitrary capabilities.

Regards,
-Alan