Class CotaniSeasons
java.lang.Object
com.cotani.season.CotaniSeasons
Factories for the
cotani-season module.-
Method Summary
Modifier and TypeMethodDescriptionstatic SeasonServicefromRepository(SeasonRepository repository, com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus) Creates a service over a caller-owned repository.static SeasonServicefromRepository(SeasonRepository repository, com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus, SeasonServiceOptions options) Creates a service with explicit operational policies.static SeasonServiceinMemory(com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus) Creates an isolated in-memory season service for tests or ephemeral servers.
-
Method Details
-
inMemory
public static SeasonService inMemory(com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus) Creates an isolated in-memory season service for tests or ephemeral servers. -
fromRepository
public static SeasonService fromRepository(SeasonRepository repository, com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus) Creates a service over a caller-owned repository. -
fromRepository
public static SeasonService fromRepository(SeasonRepository repository, com.cotani.reward.api.RewardService rewardService, com.cotani.event.api.EventBus eventBus, SeasonServiceOptions options) Creates a service with explicit operational policies.
-