BeanRegistrar could provide optional support for implementations implementing ImportAware. When used outside of an import scenario, the setImportMetadata will just not be invoked, letting the implementation react as appropriate.