Extending OCD in AEM Services
Hi All,
We have a scenario in our project where we want to create one common OCD to define all common attributes accorss the services and re-use / extend it within in the specific service OCD configuration to avoid the code duplications. The idea is to keep the OCD attributes at one place and populate values from the individual services.
Psuedo Code:
@ObjectClassDefinition(name = "Customer Experience Portal Process Service Configuration", description = "Customer Experience Portal Process Service Configuration")
public @interface ParentConfig {
@AttributeDefinition(name = "Service Name", description = "Suffix of browser request")
String serviceName();
}
In the individual service we are trying to provide the values by calling this parent ServiceConfig, like this
@ParentConfig (serviceName="Dummy Value")
public @interface ChildConfig{
// Other Attributes
}
But we are not able to provide the configuration when the service containing the ChildConfig is executed. We need your help here.
Thanks,
Ayush