An AEM application needs to implement multi-tenancy using Adobe-recommended best practices and associate multiple configurations with it.
Which option is recommended?
OSGi factory configurations allow multiple independently identified configuration instances to be bound to the same component or service. The modern OSGi annotation pattern uses @Component together with @Designate(ocd = ..., factory = true); factory = true enables the factory-configuration behavior needed for multiple instances. Adobe’s OSGi best-practices material shows this @Designate factory pattern, and AEM documentation describes factory configurations as creating distinct instances with persistent identities.
@Component
@Designate(ocd = ..., factory = true)
factory = true
@Designate
Community Discussion