Your case looks more like you need to register a whole class with everything, not just synthetic bits of it. Synthetic components is not going to be equal to a full-fledged version. E.g. something like BeforeBeanDiscovery.addAnnotatedType() should add the whole class and then discover any IPs and OMs on it. But I suppose BeforeBeanDiscovery is too early for you? |