package productcatalog.controllers;

import common.controllers.SunriseController;
import io.sphere.sdk.categories.CategoryTree;
import io.sphere.sdk.client.PlayJavaSphereClient;
import play.Configuration;
import play.mvc.Result;

public class ProductController extends SunriseController {

    public ProductController(final PlayJavaSphereClient client, final CategoryTree categoryTree, final Configuration configuration) {
        super(client, categoryTree, configuration);
    }

    public Result index() {
        return ok("Good!");
    }
}
package productcatalog.controllers;

import common.controllers.SunriseController;
import io.sphere.sdk.categories.CategoryTree;
import io.sphere.sdk.client.PlayJavaSphereClient;
import play.Configuration;
import play.mvc.Result;

import javax.inject.Inject;

public class ProductController extends SunriseController {

    @Inject
    public ProductController(final PlayJavaSphereClient client, final CategoryTree categoryTree, final Configuration configuration) {
        super(client, categoryTree, configuration);
    }

    public Result index() {
        return ok("Good!");
    }
}
Make ProductController dependency injection compatible.