Michiel Eggermont pushed to branch master at cms-community / hippo-repository
Commits: c8aa43ef by Michiel Eggermont at 2018-03-07T16:51:46+01:00 REPO-1962 Annotate module with @ProvidesService This way other modules can safely get the LocalizationService by annotating their module with @RequiresService. - - - - - 1 changed file: - engine/src/main/java/org/onehippo/repository/l10n/LocalizationModule.java Changes: ===================================== engine/src/main/java/org/onehippo/repository/l10n/LocalizationModule.java ===================================== --- a/engine/src/main/java/org/onehippo/repository/l10n/LocalizationModule.java +++ b/engine/src/main/java/org/onehippo/repository/l10n/LocalizationModule.java @@ -26,11 +26,13 @@ import javax.jcr.observation.EventListener; import org.onehippo.cms7.services.HippoServiceRegistry; import org.onehippo.repository.modules.DaemonModule; +import org.onehippo.repository.modules.ProvidesService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.onehippo.repository.l10n.LocalizationService.TRANSLATIONS_PATH; +@ProvidesService(types = LocalizationService.class) public class LocalizationModule implements DaemonModule { private static final Logger log = LoggerFactory.getLogger(LocalizationModule.class); View it on GitLab: https://code.onehippo.org/cms-community/hippo-repository/commit/c8aa43ef2c7f7ac88b8e2f8375f697366e2890f2 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-repository/commit/c8aa43ef2c7f7ac88b8e2f8375f697366e2890f2 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn