New CommerceFactory not registering as a Service in OSGI
I'm trying to add a new commerce provider to an empty AEM project created from the Maven Archtype version 11.
My Core bundle installs just fine but the commerceFactory does not register in OSGI as a service, the exact same class in my existing project (created with Archtype 10 but also is an existing project so numerous changes to the POM etc have been done) works just fine.
Any help would be appreciated, code below:
@Component
@Service
@Properties(value = {
@Property(name = "service.description", value = "Factory implementation for FooCommerceServiceFactory"),
@Property(name = "commerceProvider", value = "foo", propertyPrivate = true)
})
public class FooCommerceServiceFactory extends AbstractJcrCommerceServiceFactory implements CommerceServiceFactory {
public CommerceService getCommerceService(final Resource res) {
return new FooCommerceServiceImpl(getServiceContext(), res);
}
}