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 DomainEventPublisher
Gives theDomainEventPublisher
to use to publish domain events.static TimeService
Gives theTimeService
to 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 theDomainEventPublisher
to use to publish domain events.- Returns:
- the
DomainEventPublisher
-
timeService
Gives theTimeService
to use to work with "current" time.- Returns:
- the
TimeService
-