Class CommonDomainRegistry

java.lang.Object
com.reallifedeveloper.common.domain.registry.AbstractDomainRegistry
com.reallifedeveloper.common.domain.registry.CommonDomainRegistry
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class CommonDomainRegistry extends AbstractDomainRegistry
A registry of common domain components that need to be available in code where it is not practical to use dependency injection.
Author:
RealLifeDeveloper
  • Constructor Details

    • CommonDomainRegistry

      public CommonDomainRegistry()
  • Method Details

    • domainEventPublisher

      public static DomainEventPublisher domainEventPublisher()
      Gives the DomainEventPublisher to use to publish domain events.
      Returns:
      the DomainEventPublisher
    • timeService

      public static TimeService timeService()
      Gives the TimeService to use to work with "current" time.
      Returns:
      the TimeService