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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DomainEventPublisherGives theDomainEventPublisherto use to publish domain events.static TimeServiceGives theTimeServiceto use to work with "current" time.Methods inherited from class com.reallifedeveloper.common.domain.registry.AbstractDomainRegistry
getBean, setApplicationContext
-
Constructor Details
-
CommonDomainRegistry
public CommonDomainRegistry()
-
-
Method Details
-
domainEventPublisher
Gives theDomainEventPublisherto use to publish domain events.- Returns:
- the
DomainEventPublisher
-
timeService
Gives theTimeServiceto use to work with "current" time.- Returns:
- the
TimeService
-