Can you try as below, Firstly you have configuration policy as optional, and second, you are not declaring right interface for @8220494 annotation.
Corrected code below:-
@8220494(immediate = true, service = DataConfig.class, property = {
Constants.SERVICE_DESCRIPTION + "=Data Config",
Constants.SERVICE_VENDOR + "=ABC"
})
@ServiceDescription("DataConfig Service")
@Designate(ocd = DataConfigImpl.Configuration.class)
public final class DataConfigImpl implements DataConfig {
@ObjectClassDefinition(name = "DataConfigImpl")
public @interface Configuration {
@AttributeDefinition(name = "paths", description = "Paths", type = AttributeType.STRING) String my_paths() default "";
}
@SuppressWarnings("rawtypes") private Dictionary props = null;
@580286 Configuration configuration;
@580286 ComponentContext componentContext;
@580286 @9182423 protected void activate(Config c) {
try {
this.configuration = c;
}
}
}